mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-22 16:41:12 +02:00
22440: _list_files loaded zsh/stat too early
unposted: document the use of stat builtin unposted: improve docs for $$ and $PPID
This commit is contained in:
parent
38356d85ba
commit
518f437c68
4 changed files with 22 additions and 5 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2006-05-12 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* unposted: Doc/Zsh/params.yo: improve documentation for $$
|
||||||
|
and $PPID.
|
||||||
|
|
||||||
|
* unposted: Doc/Zsh/compsys.yo: document that _list_files
|
||||||
|
uses the builtin state, c.f. 22440.
|
||||||
|
|
||||||
|
* 22440: Completion/Unix/Type/_list_files: loaded zsh/stat
|
||||||
|
if not needed, which screwed up external stat programmes.
|
||||||
|
|
||||||
2006-05-05 Wayne Davison <wayned@users.sourceforge.net>
|
2006-05-05 Wayne Davison <wayned@users.sourceforge.net>
|
||||||
|
|
||||||
* unposted: Completion/Unix/Command/_bzr: fixed the completion
|
* unposted: Completion/Unix/Command/_bzr: fixed the completion
|
||||||
|
|
|
@ -15,8 +15,6 @@ integer ok
|
||||||
listfiles=()
|
listfiles=()
|
||||||
listopts=()
|
listopts=()
|
||||||
|
|
||||||
zmodload -i zsh/stat 2>/dev/null || return 1
|
|
||||||
|
|
||||||
zstyle -a ":completion:${curcontext}:" file-list stylevals || return 1
|
zstyle -a ":completion:${curcontext}:" file-list stylevals || return 1
|
||||||
|
|
||||||
# TODO: more flexible way of handling the following? e.g. use $compstate?
|
# TODO: more flexible way of handling the following? e.g. use $compstate?
|
||||||
|
@ -48,6 +46,8 @@ done
|
||||||
|
|
||||||
(( ok )) || return 1
|
(( ok )) || return 1
|
||||||
|
|
||||||
|
zmodload -i zsh/stat 2>/dev/null || return 1
|
||||||
|
|
||||||
for f in ${(P)1}; do
|
for f in ${(P)1}; do
|
||||||
if [[ ! -e "${2:+$2/}$f" ]]; then
|
if [[ ! -e "${2:+$2/}$f" ]]; then
|
||||||
listfiles+=("${2:+$2/}$f")
|
listfiles+=("${2:+$2/}$f")
|
||||||
|
|
|
@ -1268,7 +1268,8 @@ item(tt(file-list))(
|
||||||
This style controls whether files completed using the standard builtin
|
This style controls whether files completed using the standard builtin
|
||||||
mechanism are to be listed with a long list similar to tt(ls -l)
|
mechanism are to be listed with a long list similar to tt(ls -l)
|
||||||
(although note that this feature actually uses the shell module
|
(although note that this feature actually uses the shell module
|
||||||
tt(zsh/stat) for file information).
|
tt(zsh/stat) for file information; this lods the builtin tt(stat)
|
||||||
|
which will replace any external tt(stat) executable).
|
||||||
|
|
||||||
The style may either be set to a true value (or `tt(all)'), or
|
The style may either be set to a true value (or `tt(all)'), or
|
||||||
one of the values `tt(insert)' or `tt(list)', indicating that files
|
one of the values `tt(insert)' or `tt(list)', indicating that files
|
||||||
|
|
|
@ -473,7 +473,10 @@ Same as tt(#).
|
||||||
)
|
)
|
||||||
vindex($)
|
vindex($)
|
||||||
item(tt($) <S>)(
|
item(tt($) <S>)(
|
||||||
The process ID of this shell.
|
The process ID of this shell. Note that this indicates the original
|
||||||
|
shell started by invoking tt(zsh); all processes forked from the shells
|
||||||
|
without executing a new program, such as subshells started by
|
||||||
|
tt(LPAR())var(...)tt(RPAR()), substitute the same value.
|
||||||
)
|
)
|
||||||
vindex(-)
|
vindex(-)
|
||||||
item(tt(-) <S>)(
|
item(tt(-) <S>)(
|
||||||
|
@ -609,7 +612,9 @@ The operating system, as determined at compile time.
|
||||||
)
|
)
|
||||||
vindex(PPID)
|
vindex(PPID)
|
||||||
item(tt(PPID) <S>)(
|
item(tt(PPID) <S>)(
|
||||||
The process ID of the parent of the shell.
|
The process ID of the parent of the shell. As for tt($$), the
|
||||||
|
value indicates the parent of the original shell and does not
|
||||||
|
change in subshells.
|
||||||
)
|
)
|
||||||
vindex(PWD)
|
vindex(PWD)
|
||||||
item(tt(PWD))(
|
item(tt(PWD))(
|
||||||
|
|
Loading…
Reference in a new issue