Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 1/1] Document that %str and %?str job specifiers only match the last such job.



$ jobs
[1]  - suspended  vim
[2]  + suspended  vim

$ jobs %v
[2]  + suspended  vim

$ jobs %?v
[2]  + suspended  vim
---
 Doc/Zsh/jobs.yo | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Doc/Zsh/jobs.yo b/Doc/Zsh/jobs.yo
index d939501..6262dd2 100644
--- a/Doc/Zsh/jobs.yo
+++ b/Doc/Zsh/jobs.yo
@@ -74,8 +74,8 @@ or by one of the following:
 
 startsitem()
 sitem(tt(%)var(number))(The job with the given number.)
-sitem(tt(%)var(string))(Any job whose command line begins with var(string).)
-sitem(tt(%?)var(string))(Any job whose command line contains var(string).)
+sitem(tt(%)var(string))(The last job whose command line begins with var(string).)
+sitem(tt(%?)var(string))(The last job whose command line contains var(string).)
 sitem(tt(%%))(Current job.)
 sitem(tt(%PLUS()))(Equivalent to `tt(%%)'.)
 sitem(tt(%-))(Previous job.)
-- 
2.8.0.rc3.226.g39d4020



Messages sorted by: Reverse Date, Date, Thread, Author