mirror of git://git.code.sf.net/p/zsh/code
26022: fix on Solaris where /proc/$$/fd exists but doesn't contain symlinks
This commit is contained in:
parent
5d13deda4e
commit
1fa2d1e6e5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue