diff options
Diffstat (limited to 'Doc/Zsh/params.yo')
-rw-r--r-- | Doc/Zsh/params.yo | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index e9a3c722d..5991921f8 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -226,6 +226,7 @@ example (assuming the option tt(KSH_ARRAYS) is not in effect): example([[ ${array[(i)pattern]} -le ${#array} ]]) If tt(KSH_ARRAYS) is in effect, the tt(-le) should be replaced by tt(-lt). +) item(tt(R))( Like `tt(r)', but gives the last match. For associative arrays, gives all possible matches. May be used for assigning to ordinary array @@ -244,7 +245,6 @@ required; using a parameter to hold the key has the desired effect: example(key2='original key' print ${array[(Re)$key2]}) ) -) item(tt(i))( Like `tt(r)', but gives the index of the match instead; this may not be combined with a second argument. On the left side of an assignment, @@ -1003,6 +1003,10 @@ and replaces the tt(SUNKEYBOARDHACK) option which did this for backquotes only. Should the chosen character be one of singlequote, doublequote or backquote, there must also be an odd number of them on the command line for the last one to be removed. + +For backward compabitility, if the tt(SUNKEYBOARDHACK) option is +explicitly set, the value of tt(KEYBOARD_HACK) reverts to backquote. +If the option is explicitly unset, this variable is set to empty. ) vindex(KEYTIMEOUT) item(tt(KEYTIMEOUT))( @@ -1099,6 +1103,22 @@ whose value is not used by the shell. The tt(manpath) array can be useful, however, since setting it also sets tt(MANPATH), and vice versa. ) +xitem(tt(match)) +xitem(tt(mbegin)) +item(tt(mend))( +Arrays set by the shell when the tt(b) globbing flag is used in pattern +matches. See the subsection em(Globbing flags) in +ifzman(the documentation for em(Filename Generation) in zmanref(zshexpn))\ +ifnzman(noderef(Filename Generation)). +) +xitem(tt(MATCH)) +xitem(tt(MBEGIN)) +item(tt(MEND))( +Set by the shell when the tt(m) globbing flag is used in pattern +matches. See the subsection em(Globbing flags) in +ifzman(the documentation for em(Filename Generation) in zmanref(zshexpn))\ +ifnzman(noderef(Filename Generation)). +) vindex(module_path) vindex(MODULE_PATH) item(tt(module_path) <S> <Z> (tt(MODULE_PATH) <S>))( @@ -1283,7 +1303,7 @@ the workaround `tt(TERM=$TERM)' unnecessary. vindex(TIMEFMT) item(tt(TIMEFMT))( The format of process time reports with the tt(time) keyword. -The default is `tt(%E real %U user %S system %P %J)'. +The default is `tt(%J %U user %S system %P cpu %*E total)'. Recognizes the following escape sequences, although not all may be available on all systems, and some that are available may not be useful: @@ -1296,12 +1316,12 @@ sitem(tt(%E))(Elapsed time in seconds.) sitem(tt(%P))(The CPU percentage, computed as (100*tt(%U)PLUS()tt(%S))/tt(%E).) sitem(tt(%W))(Number of times the process was swapped.) -sitem(tt(%X))(The average amount in (shared) text space used in Kbytes.) +sitem(tt(%X))(The average amount in (shared) text space used in kilobytes.) sitem(tt(%D))(The average amount in (unshared) data/stack space used in -Kbytes.) -sitem(tt(%K))(The total space used (%X+%D) in Kbytes.) +kilobytes.) +sitem(tt(%K))(The total space used (%X+%D) in kilobytes.) sitem(tt(%M))(The maximum memory the process had in use at any time in -Kbytes.) +megabytes.) sitem(tt(%F))(The number of major page faults (page needed to be brought from disk).) sitem(tt(%R))(The number of minor page faults.) |