mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Document %last process expansion
Fixes #2379 (at least the most pressing part of it).
This commit is contained in:
@@ -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.
|
- 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 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.
|
- Otherwise, if any child processes match the specified string, their PIDs are the result of the expansion.
|
||||||
|
|||||||
Reference in New Issue
Block a user