mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
11485, 11488: Relocate "Compatibility" and "Restricted Shell" docs.
This commit is contained in:
parent
01bd1c61ae
commit
663e892126
10 changed files with 83 additions and 38 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2000-05-22 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 11485, 11488: Relocate "Compatibility" and "Restricted Shell" docs.
|
||||||
|
|
||||||
2000-05-22 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
2000-05-22 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
||||||
|
|
||||||
* 11501: Completion/Linux/_rpm: --buildarch is like --target.
|
* 11501: Completion/Linux/_rpm: --buildarch is like --target.
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
texinode(Compatibility)(Prompt Expansion)(Conditional Expressions)(Top)
|
texinode(Compatibility)(Restricted Shell)()(Invocation)
|
||||||
chapter(Compatibility)
|
|
||||||
ifzman(\
|
|
||||||
sect(Compatibility)
|
sect(Compatibility)
|
||||||
)\
|
|
||||||
cindex(compatibility)
|
cindex(compatibility)
|
||||||
cindex(sh, compatibility)
|
cindex(sh, compatibility)
|
||||||
cindex(ksh, compatibility)
|
cindex(ksh, compatibility)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
texinode(Conditional Expressions)(Compatibility)(Arithmetic Evaluation)(Top)
|
texinode(Conditional Expressions)(Prompt Expansion)(Arithmetic Evaluation)(Top)
|
||||||
chapter(Conditional Expressions)
|
chapter(Conditional Expressions)
|
||||||
ifzman(\
|
ifzman(\
|
||||||
sect(Conditional Expressions)
|
sect(Conditional Expressions)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
texinode(Expansion)(Parameters)(Restricted Shell)(Top)
|
texinode(Expansion)(Parameters)(Prompt Expansion)(Top)
|
||||||
chapter(Expansion)
|
chapter(Expansion)
|
||||||
cindex(expansion)
|
cindex(expansion)
|
||||||
sect(Description)
|
sect(Description)
|
||||||
|
|
|
@ -21,3 +21,22 @@ item(tt(-s))(
|
||||||
Read command from the standard input.
|
Read command from the standard input.
|
||||||
)
|
)
|
||||||
enditem()
|
enditem()
|
||||||
|
|
||||||
|
For further options, which are common to invocation and the tt(set)
|
||||||
|
builtin, see
|
||||||
|
ifzman(zmanref(zshoptions))\
|
||||||
|
ifnzman(noderef(Options))\
|
||||||
|
. Flags may be specified by name using the tt(-o) option. For example,
|
||||||
|
|
||||||
|
example(zsh -x -o shwordsplit scr)
|
||||||
|
|
||||||
|
runs the script tt(scr), setting the tt(XTRACE) option by the corresponding
|
||||||
|
letter `tt(-x)' and the tt(SH_WORD_SPLIT) option by name.
|
||||||
|
|
||||||
|
startmenu()
|
||||||
|
menu(Compatibility)
|
||||||
|
menu(Restricted Shell)
|
||||||
|
endmenu()
|
||||||
|
|
||||||
|
includefile(Zsh/compat.yo)
|
||||||
|
includefile(Zsh/restricted.yo)
|
||||||
|
|
|
@ -20,9 +20,7 @@ menu(Functions)
|
||||||
menu(Jobs & Signals)
|
menu(Jobs & Signals)
|
||||||
menu(Arithmetic Evaluation)
|
menu(Arithmetic Evaluation)
|
||||||
menu(Conditional Expressions)
|
menu(Conditional Expressions)
|
||||||
menu(Compatibility)
|
|
||||||
menu(Prompt Expansion)
|
menu(Prompt Expansion)
|
||||||
menu(Restricted Shell)
|
|
||||||
menu(Expansion)
|
menu(Expansion)
|
||||||
menu(Parameters)
|
menu(Parameters)
|
||||||
menu(Options)
|
menu(Options)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
texinode(Prompt Expansion)(Restricted Shell)(Compatibility)(Top)
|
texinode(Prompt Expansion)(Expansion)(Conditional Expressions)(Top)
|
||||||
chapter(Prompt Expansion)
|
chapter(Prompt Expansion)
|
||||||
ifzman(\
|
ifzman(\
|
||||||
sect(Prompt Expansion)
|
sect(Prompt Expansion)
|
||||||
|
@ -42,21 +42,14 @@ A `tt(RPAR())'.
|
||||||
)
|
)
|
||||||
xitem(tt(%d))
|
xitem(tt(%d))
|
||||||
item(tt(%/))(
|
item(tt(%/))(
|
||||||
Present working directory (tt($PWD)).
|
Present working directory (tt($PWD)). If an integer follows the `tt(%)',
|
||||||
|
it specifies a number of trailing components of tt($PWD) to show; zero
|
||||||
|
means the whole path.
|
||||||
)
|
)
|
||||||
item(tt(%~))(
|
item(tt(%~))(
|
||||||
tt($PWD).
|
As tt(%d) and tt(%/), but if tt($PWD) has a named directory as its prefix,
|
||||||
If it has a named directory as its prefix, that part is replaced
|
that part is replaced by a `tt(~)' followed by the name of the directory.
|
||||||
by a `tt(~)' followed by the name of the directory.
|
If it starts with tt($HOME), that part is replaced by a `tt(~)'.
|
||||||
If it starts with tt($HOME), that part is
|
|
||||||
replaced by a `tt(~)'.
|
|
||||||
)
|
|
||||||
xitem(tt(%c))
|
|
||||||
xitem(tt(%.))
|
|
||||||
item(tt(%C))(
|
|
||||||
Trailing component of tt($PWD).
|
|
||||||
An integer may follow the `tt(%)' to get more than one component.
|
|
||||||
Unless `tt(%C)' is used, tilde contraction is performed first.
|
|
||||||
)
|
)
|
||||||
xitem(tt(%h))
|
xitem(tt(%h))
|
||||||
item(tt(%!))(
|
item(tt(%!))(
|
||||||
|
@ -95,6 +88,18 @@ Current time of day in 24-hour format, with seconds.
|
||||||
item(tt(%n))(
|
item(tt(%n))(
|
||||||
tt($USERNAME).
|
tt($USERNAME).
|
||||||
)
|
)
|
||||||
|
item(tt(%N))(
|
||||||
|
The name of the script, sourced file, or shell function that zsh is
|
||||||
|
currently executing, whichever was started most recently. If there is
|
||||||
|
none, this is equivalent to the parameter tt($0). An integer may follow
|
||||||
|
the `tt(%)' to specify a number of trailing path components to show; zero
|
||||||
|
means the full path.
|
||||||
|
)
|
||||||
|
item(tt(%i))(
|
||||||
|
The line number currently being executed in the script, sourced file, or
|
||||||
|
shell function given by tt(%N). This is most useful for debugging as part
|
||||||
|
of tt($PS4).
|
||||||
|
)
|
||||||
item(tt(%w))(
|
item(tt(%w))(
|
||||||
The date in var(day)tt(-)var(dd) format.
|
The date in var(day)tt(-)var(dd) format.
|
||||||
)
|
)
|
||||||
|
@ -122,7 +127,9 @@ item(tt(%_))(
|
||||||
The status of the parser, i.e. the shell constructs (like `tt(if)' and
|
The status of the parser, i.e. the shell constructs (like `tt(if)' and
|
||||||
`tt(for)') that have been started on the command line. If given an integer
|
`tt(for)') that have been started on the command line. If given an integer
|
||||||
number that many strings will be printed; zero or no integer means
|
number that many strings will be printed; zero or no integer means
|
||||||
print as many as there are.
|
print as many as there are. This is most useful in prompts tt(PS2) for
|
||||||
|
continuation lines and tt(PS4) for debugging with the tt(XTRACE) option; in
|
||||||
|
the latter case it will also work non-interactively.
|
||||||
)
|
)
|
||||||
item(tt(%E))(
|
item(tt(%E))(
|
||||||
Clears to end of line.
|
Clears to end of line.
|
||||||
|
@ -175,6 +182,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 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(#))(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(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(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(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.)
|
sitem(tt(v))(True if the array tt(psvar) has at least var(n) elements.)
|
||||||
|
@ -185,25 +194,50 @@ endsitem()
|
||||||
xitem(tt(%<)var(string)tt(<))
|
xitem(tt(%<)var(string)tt(<))
|
||||||
xitem(tt(%>)var(string)tt(>))
|
xitem(tt(%>)var(string)tt(>))
|
||||||
item(tt(%[)var(xstring)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)',
|
The third, deprecated, form is equivalent to `tt(%)var(xstringx)',
|
||||||
i.e. var(x) may be `tt(<)' or `tt(>)'.
|
i.e. var(x) may be `tt(<)' or `tt(>)'.
|
||||||
The numeric argument, which in the third form may appear immediately
|
The numeric argument, which in the third form may appear immediately
|
||||||
after the `tt([)', specifies the maximum permitted length of
|
after the `tt([)', specifies the maximum permitted length of
|
||||||
the various strings that can be displayed in the prompt. If this
|
the various strings that can be displayed in the prompt.
|
||||||
integer is zero, or missing, truncation is disabled. Truncation is
|
|
||||||
initially disabled.
|
|
||||||
The var(string) will be displayed in
|
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,
|
The forms with `tt(<)' truncate at the left of the string,
|
||||||
and the forms with `tt(>)' truncate at the right 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)',
|
For example, if the current directory is `tt(/home/pike)',
|
||||||
the prompt `tt(%8<..<%/)' will expand to `tt(..e/pike)'.
|
the prompt `tt(%8<..<%/)' will expand to `tt(..e/pike)'.
|
||||||
In this string, the terminating character (`tt(<)', `tt(>)' or `tt(])'),
|
In this string, the terminating character (`tt(<)', `tt(>)' or `tt(])'),
|
||||||
or in fact any character, may be quoted by a preceding `tt(\)'.
|
or in fact any character, may be quoted by a preceding `tt(\)'; note
|
||||||
% escapes are em(not) recognised.
|
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,
|
If the var(string) is longer than the specified truncation length,
|
||||||
it will appear in full, completely replacing the truncated string.
|
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.
|
||||||
|
)
|
||||||
|
xitem(tt(%c))
|
||||||
|
xitem(tt(%.))
|
||||||
|
item(tt(%C))(
|
||||||
|
Trailing component of tt($PWD).
|
||||||
|
An integer may follow the `tt(%)' to get more than one component.
|
||||||
|
Unless `tt(%C)' is used, tilde contraction is performed first. These are
|
||||||
|
deprecated as tt(%c) and tt(%C) are equivalent to tt(%1~) and tt(%1/),
|
||||||
|
respectively, while explicit positive integers have the same effect as for
|
||||||
|
the latter two sequences.
|
||||||
)
|
)
|
||||||
enditem()
|
enditem()
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
texinode(Restricted Shell)(Expansion)(Prompt Expansion)(Top)
|
texinode(Restricted Shell)()(Compatibility)(Invocation)
|
||||||
chapter(Restricted Shell)
|
|
||||||
ifzman(\
|
|
||||||
sect(Restricted Shell)
|
sect(Restricted Shell)
|
||||||
)\
|
|
||||||
cindex(restricted shell)
|
cindex(restricted shell)
|
||||||
pindex(RESTRICTED)
|
pindex(RESTRICTED)
|
||||||
When the basename of the command used to invoke zsh starts with the letter
|
When the basename of the command used to invoke zsh starts with the letter
|
||||||
|
|
|
@ -53,9 +53,7 @@ ifnzman(includefile(Zsh/func.yo))
|
||||||
ifnzman(includefile(Zsh/jobs.yo))
|
ifnzman(includefile(Zsh/jobs.yo))
|
||||||
ifnzman(includefile(Zsh/arith.yo))
|
ifnzman(includefile(Zsh/arith.yo))
|
||||||
ifnzman(includefile(Zsh/cond.yo))
|
ifnzman(includefile(Zsh/cond.yo))
|
||||||
ifnzman(includefile(Zsh/compat.yo))
|
|
||||||
ifnzman(includefile(Zsh/prompt.yo))
|
ifnzman(includefile(Zsh/prompt.yo))
|
||||||
ifnzman(includefile(Zsh/restricted.yo))
|
|
||||||
ifnzman(includefile(Zsh/expn.yo))
|
ifnzman(includefile(Zsh/expn.yo))
|
||||||
ifnzman(includefile(Zsh/params.yo))
|
ifnzman(includefile(Zsh/params.yo))
|
||||||
ifnzman(includefile(Zsh/options.yo))
|
ifnzman(includefile(Zsh/options.yo))
|
||||||
|
|
|
@ -7,6 +7,4 @@ includefile(Zsh/func.yo)
|
||||||
includefile(Zsh/jobs.yo)
|
includefile(Zsh/jobs.yo)
|
||||||
includefile(Zsh/arith.yo)
|
includefile(Zsh/arith.yo)
|
||||||
includefile(Zsh/cond.yo)
|
includefile(Zsh/cond.yo)
|
||||||
includefile(Zsh/compat.yo)
|
|
||||||
includefile(Zsh/prompt.yo)
|
includefile(Zsh/prompt.yo)
|
||||||
includefile(Zsh/restricted.yo)
|
|
||||||
|
|
Loading…
Reference in a new issue