mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
add $pipestatus support
This commit is contained in:
@@ -1193,6 +1193,8 @@ The user can change the settings of ``fish`` by changing the values of certain v
|
||||
|
||||
- ``status``, the `exit status <#variables-status>`_ of the last foreground job to exit. If the job was terminated through a signal, the exit status will be 128 plus the signal number.
|
||||
|
||||
- ``pipestatus``, an array of exit statuses of all processes that made up the last executed pipe.
|
||||
|
||||
- ``USER``, the current username. This variable can be changed by the user.
|
||||
|
||||
- ``CMD_DURATION``, the runtime of the last command in milliseconds.
|
||||
|
||||
@@ -246,7 +246,7 @@ Unlike other shells, ``fish`` stores the exit status of the last command in ``$s
|
||||
<outp>1</outp>
|
||||
|
||||
|
||||
Zero is considered success, and non-zero is failure.
|
||||
Zero is considered success, and non-zero is failure. There is also a ``$pipestatus`` array variable for the exit statues of processes in a pipe.
|
||||
|
||||
|
||||
Exports (Shell Variables)
|
||||
|
||||
Reference in New Issue
Block a user