mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
Document %last process expansion
Fixes #2379 (at least the most pressing part of it).
This commit is contained in:
parent
b2323ca203
commit
11c8a47d22
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue