mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-23 17:01:05 +02:00
zsh-workers/8038
This commit is contained in:
parent
e504499d98
commit
bd08a2a44e
1 changed files with 3 additions and 3 deletions
|
@ -53,15 +53,15 @@ fi
|
||||||
|
|
||||||
tmp="$words[(I)--file=*]"
|
tmp="$words[(I)--file=*]"
|
||||||
if (( tmp )); then
|
if (( tmp )); then
|
||||||
tf="${words[tmp][8,-1]}"
|
tf=${~words[tmp][8,-1]}
|
||||||
_tar_cmd="f$_tar_cmd"
|
_tar_cmd="f$_tar_cmd"
|
||||||
elif [[ "$words[2]" != -* && "$words[2]" = *f* ]]; then
|
elif [[ "$words[2]" != -* && "$words[2]" = *f* ]]; then
|
||||||
tf="$words[3]"
|
tf=${~words[3]}
|
||||||
_tar_cmd="f$_tar_cmd"
|
_tar_cmd="f$_tar_cmd"
|
||||||
else
|
else
|
||||||
tmp="${words[(I)-*f*~--*]}"
|
tmp="${words[(I)-*f*~--*]}"
|
||||||
if (( tmp )); then
|
if (( tmp )); then
|
||||||
tf="$words[tmp+1]"
|
tf=${~words[tmp+1]}
|
||||||
_tar_cmd="f$_tar_cmd"
|
_tar_cmd="f$_tar_cmd"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue