mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:23:34 +08:00
Document %last process expansion
Fixes #2379 (at least the most pressing part of it).
This commit is contained in:
parent
b2323ca203
commit
11c8a47d22
|
@ -549,6 +549,8 @@ The `%` (percent) character at the beginning of a parameter followed by a string
|
|||
|
||||
- If the string is the entire word `self`, the shell's PID is the result.
|
||||
|
||||
- Otherwise, if the string is the entire word `last`, the last jobs PID is the result.
|
||||
|
||||
- Otherwise, if the string is the ID of a job, the result is the process group ID of the job.
|
||||
|
||||
- Otherwise, if any child processes match the specified string, their PIDs are the result of the expansion.
|
||||
|
|
Loading…
Reference in New Issue
Block a user