1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +01:00

handle zsh options in _sh

This commit is contained in:
Peter Stephenson 2001-08-28 20:35:53 +00:00
parent b3336b7918
commit e8f8c3abee
2 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2001-08-28 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 15722: Completion/Unix/Command/_sh: handle zsh options.
* 15720: Functions/Misc/zmv: use ${(e)...} as suggested by
Bart; fix problem with option arguments with special characters;
more consistency with shifting arguments; fix verbose mode

View file

@ -1,5 +1,14 @@
#compdef sh ksh bash zsh csh tcsh rc
if [[ $service == zsh ]]; then
# try a bit harder
if [[ ${words[CURRENT-1]} == -o ]]; then
_options
# no other possibilities
return
fi
fi
if (( CURRENT == ${words[(i)-c]} + 1 )); then
compset -q
_normal