diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:07:38 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:07:38 +0000 |
commit | f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9 (patch) | |
tree | 7ebc57c7b2ceed481e23f598011dc88d159c9178 /Doc | |
parent | a61dc2074ae6cd00f1c166dc0102c491db056060 (diff) | |
download | zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.tar.gz zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.tar.xz zsh-f13624e0f8a3c28c90aa0ce8ee36b639a491e4a9.zip |
zsh-3.1.5-pws-2 zsh-3.1.5-pws-2
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile.in | 6 | ||||
-rw-r--r-- | Doc/Zsh/builtins.yo | 62 | ||||
-rw-r--r-- | Doc/Zsh/expn.yo | 8 | ||||
-rw-r--r-- | Doc/Zsh/options.yo | 2 | ||||
-rw-r--r-- | Doc/Zsh/prompt.yo | 31 |
5 files changed, 66 insertions, 43 deletions
diff --git a/Doc/Makefile.in b/Doc/Makefile.in index 1883abfd1..1f8fa5ff9 100644 --- a/Doc/Makefile.in +++ b/Doc/Makefile.in @@ -139,9 +139,13 @@ install.info: zsh.info elif test -f $(sdir)/$$file; then \ $(INSTALL_DATA) $(sdir)/$$file $(infodir); \ else :; \ - fi || exit 1; \ + fi || exit 1; \ done +install.html: zsh_toc.html + $(sdir_top)/mkinstalldirs $(htmldir) + $(INSTALL_DATA) *.html $(htmldir) + # uninstall man pages uninstall.man: for file in $(MAN); do \ diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 8959543c5..1bbc9c36a 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -98,12 +98,13 @@ Change the current directory. In the first form, change the current directory to var(arg), or to the value of tt($HOME) if var(arg) is not specified. If var(arg) is `tt(-)', change to the value of tt($OLDPWD), the previous directory. -If a directory named var(arg) is not found in the current directory -and var(arg) does not begin with a slash, -search each component of the shell parameter tt(cdpath). -If the option tt(CDABLE_VARS) is set, and a parameter named var(arg) -exists whose value begins with a slash, treat its value as -the directory. +Otherwise, if a directory named var(arg) is not found in the current +directory and var(arg) does not begin with a slash, search each +component of the shell parameter tt(cdpath). If no directory is found +and the option tt(CDABLE_VARS) is set, and a parameter named var(arg) +exists whose value begins with a slash, treat its value as the +directory. In that case, the parameter is added to the named +directory hash table. The second form of tt(cd) substitutes the string var(new) for the string var(old) in the name of the current directory, @@ -357,11 +358,20 @@ is stored in tt(OPTARG). vindex(OPTIND, use of) vindex(OPTARG, use of) +The first option to be examined may be changed by explicitly assigning +to tt(OPTIND). tt(OPTIND) has an initial value of tt(1), and is +normally reset to tt(1) upon exit from a shell function. tt(OPTARG) +is not reset and retains its value from the most recent call to +tt(getopts). If either of tt(OPTIND) or tt(OPTARG) is explicitly +unset, it remains unset, and the index or option argument is not +stored. The option itself is still stored in var(name) in this case. + A leading `tt(:)' in var(optstring) causes tt(getopts) to store the -letter of the invalid option in tt(OPTARG), and to set var(name) -to `tt(?)' for an unknown option and to `tt(:)' when a required option -is missing. Otherwise, tt(getopts) prints an error -message. The exit status is nonzero when there are no more options. +letter of any invalid option in tt(OPTARG), and to set var(name) to +`tt(?)' for an unknown option and to `tt(:)' when a required option is +missing. Otherwise, tt(getopts) sets var(name) to `tt(?)' and prints +an error message when an option is invalid. The exit status is +nonzero when there are no more options. ) findex(hash) item(tt(hash) [ tt(-dfmrv) ] [ var(name)[tt(=)var(value)] ] ...)( @@ -521,8 +531,8 @@ Same as tt(exit), except that it only works in a login shell. prefix(noglob) findex(popd) item(tt(popd) [ {tt(PLUS())|tt(-)}var(n) ])( -Removes a entry from the directory stack, and perform a tt(cd) to -the new top directory. With no argument, the current top entry is +Remove an entry from the directory stack, and perform a tt(cd) to +the new top directory. With no argument, the current top entry is removed. An argument of the form `tt(PLUS())var(n)' identifies a stack entry by counting from the left of the list shown by the tt(dirs) command, starting with zero. An argument of the form tt(-n) counts from the right. @@ -615,21 +625,9 @@ If var(arg) is not specified, change to the second directory on the stack (that is, exchange the top two entries), or change to tt($HOME) if the tt(PUSHD_TO_HOME) option is set or if there is only one entry on the stack. - -If var(arg) is `tt(-)', change to tt($OLDPWD), the previous directory. -If a directory named var(arg) is not found in the current directory -and var(arg) does not contain a slash, -search each component of the shell parameter tt(cdpath). -If the option tt(CDABLE_VARS) is set, and a parameter named var(arg) -exists whose value begins with a slash, treat its value as -the directory. - -If the option tt(PUSHD_SILENT) is not set, the directory -stack will be printed after a tt(pushd) is performed. - -The second form of tt(pushd) substitutes the string var(new) -for the string var(old) in the name of the current directory, -and tries to change to this new directory. +Otherwise, var(arg) is interpreted as it would be by tt(cd). +The meaning of var(old) and var(new) in the second form is also +the same as for tt(cd). The third form of tt(pushd) changes directory by rotating the directory list. An argument of the form `tt(PLUS())var(n)' identifies a stack @@ -637,6 +635,9 @@ entry by counting from the left of the list shown by the tt(dirs) command, starting with zero. An argument of the form `tt(-)var(n)' counts from the right. If the tt(PUSHD_MINUS) option is set, the meanings of `tt(PLUS())' and `tt(-)' in this context are swapped. + +If the option tt(PUSHD_SILENT) is not set, the directory +stack will be printed after a tt(pushd) is performed. ) findex(pushln) item(tt(pushln) [ var(arg) ... ])( @@ -727,7 +728,8 @@ is interactive. The value (exit status) of tt(read) is 1 when an end-of-file is encountered, or when tt(-c) or tt(-l) is present and the command is -not called from a tt(compctl) function. Otherwise the value is 0. +not called from a tt(compctl) function, or as described for tt(-q). +Otherwise the value is 0. The behavior of some combinations of the tt(-k), tt(-p), tt(-q), tt(-u) and tt(-z) flags is undefined. Presently tt(-q) cancels all the others, @@ -835,7 +837,7 @@ var(arg) is a command to be read and executed when the shell receives var(sig). Each var(sig) can be given as a number or as the name of a signal. If var(arg) is `tt(-)', then all traps var(sig) are reset to their -default values. If var(arg) is the null string, then this signal +default values. If var(arg) is the empty string, then this signal is ignored by the shell and by the commands it invokes. If var(sig) is tt(ZERR) then var(arg) will be executed @@ -958,7 +960,7 @@ or functions (with the tt(-f) flag) with matching names are printed. findex(ulimit) cindex(resource limits) cindex(limits, resource) -item(tt(ulimit) [ tt(-SHacdflmnpstv) [ tt(limit) ] ... ])( +item(tt(ulimit) [ tt(-SHacdflmnpstv) [ var(limit) ] ... ])( Set or display resource limits of the shell and the processes started by the shell. The value of var(limit) can be a number in the unit specified below or the value `tt(unlimited)'. If the tt(-H) flag is given use diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index f201e4751..ba8a1d239 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -573,11 +573,11 @@ enditem() subsect(Example) The flag tt(f) is useful to split a double-quoted substitution line by line. For example, `tt("${(f)$LPAR()<)var(file)tt(RPAR()}")' -will substitue the contents of var(file) divided so that one line is -supplied per argument to var(cmd). Compare this with the effect of +substitutes the contents of var(file) divided so that each line is +an element of the resulting array. Compare this with the effect of `tt($)tt(LPAR()<)var(file)tt(RPAR())' alone, which divides the file -up by words, or the same inside double quotes, where the entire -contents of the file are passed as a single argument. +up by words, or the same inside double quotes, which makes the entire +content of the file a single string. texinode(Command Substitution)(Arithmetic Expansion)(Parameter Expansion)(Expansion) sect(Command Substitution) cindex(command substitution) diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 0fdf78e8a..3af59560d 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -614,7 +614,7 @@ Thus if `tt(/usr/local/bin)' is in the user's path, and he types Commands explicitly beginning with `tt(/)', `tt(./)' or `tt(../)' are not subject to the path search. This also applies to the tt(.) builtin, -and searches for modules performed by the tt(zmodload) builtin. +and to searches for modules performed by the tt(zmodload) builtin. ) pindex(POSIX_BUILTINS) item(tt(POSIX_BUILTINS))( diff --git a/Doc/Zsh/prompt.yo b/Doc/Zsh/prompt.yo index e1628da86..685cca8c4 100644 --- a/Doc/Zsh/prompt.yo +++ b/Doc/Zsh/prompt.yo @@ -175,6 +175,8 @@ sitem(tt(w))(True if the day of the week is equal to var(n) (Sunday = 0).) sitem(tt(?))(True if the exit status of the last command was var(n).) sitem(tt(#))(True if the effective uid of the current process is var(n).) sitem(tt(g))(True if the effective gid of the current process is var(n).) +sitem(tt(l))(True if at least var(n) characters have already been +printed on the current line.) sitem(tt(L))(True if the tt(SHLVL) parameter is at least var(n).) sitem(tt(S))(True if the tt(SECONDS) parameter is at least var(n).) sitem(tt(v))(True if the array tt(psvar) has at least var(n) elements.) @@ -185,25 +187,40 @@ endsitem() xitem(tt(%<)var(string)tt(<)) xitem(tt(%>)var(string)tt(>)) item(tt(%[)var(xstring)tt(]))( -Specifies truncation behaviour. +Specifies truncation behaviour for the remainder of the prompt string. The third, deprecated, form is equivalent to `tt(%)var(xstringx)', i.e. var(x) may be `tt(<)' or `tt(>)'. The numeric argument, which in the third form may appear immediately after the `tt([)', specifies the maximum permitted length of -the various strings that can be displayed in the prompt. If this -integer is zero, or missing, truncation is disabled. Truncation is -initially disabled. +the various strings that can be displayed in the prompt. The var(string) will be displayed in -place of the truncated portion of any string. +place of the truncated portion of any string; note this does not +undergo prompt expansion. The forms with `tt(<)' truncate at the left of the string, and the forms with `tt(>)' truncate at the right of the string. For example, if the current directory is `tt(/home/pike)', the prompt `tt(%8<..<%/)' will expand to `tt(..e/pike)'. In this string, the terminating character (`tt(<)', `tt(>)' or `tt(])'), -or in fact any character, may be quoted by a preceding `tt(\)'. -% escapes are em(not) recognised. +or in fact any character, may be quoted by a preceding `tt(\)'; note +when using tt(print -P), however, that this must be doubled as the +string is also subject to standard tt(print) processing, in addition +to any backslashes removed by a double quoted string: the worst case +is therefore `tt(print -P "%<\\\\<<...")'. + If the var(string) is longer than the specified truncation length, it will appear in full, completely replacing the truncated string. + +The part of the prompt string to be truncated runs to the end of the +string, or to the end of the next enclosing group of the `tt(%LPAR())' +construct, or to the next truncation encountered at the same grouping +level (i.e. truncations inside a `tt(%LPAR())' are separate), which +ever comes first. In particular, a truncation with argument zero +(e.g. `tt(%<<)') marks the end of the range of the string to be +truncated while turning off truncation from there on. For example, the +prompt '%10<...<%~%<<%# ' will print a truncated representation of the +current directory, followed by a `tt(%)' or `tt(#)', followed by a +space. Without the `tt(%<<)', those two characters would be included +in the string to be truncated. ) enditem() |