26022: fix on Solaris where /proc/$$/fd exists but doesn't contain symlinks

This commit is contained in:
Oliver Kiddle 2008-11-10 17:12:50 +00:00
parent 5d13deda4e
commit 1fa2d1e6e5
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2008-11-08 Oliver Kiddle <opk@zsh.org>
* 26022: Completion/Zsh/Type/_file_descriptors: fix on Solaris
where /proc/$$/fd exists but doesn't contain symlinks
* 26017: Completion/Unix/Type/_path_files,
Completion/Zsh/Type/_globflags, Completion/Zsh/Type/_globquals:
add completion of globbing flags

View File

@ -2,9 +2,9 @@
local i fds expl list link sep
for i in {0..9}; [[ -e /dev/fd/$i ]] && fds+=( $i )
fds=( /dev/fd/<0-9>(N:t) )
if zstyle -T ":completion:${curcontext}:" verbose && [[ -e /proc/$$/fd ]]; then
if zstyle -T ":completion:${curcontext}:" verbose && [[ -h /proc/$$/fd/$fds[1] ]]; then
zstyle -s ":completion:${curcontext}:" list-separator sep || sep=--
if zmodload -F zsh/stat b:zstat; then