mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
25258(?): donʼt use -M option with -U in _path_files
This commit is contained in:
parent
db59a707c6
commit
ba1bcef67f
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-06-30 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 25258(?): Completion/Unix/Type/_path_files: donʼt
|
||||
use -M option with -U.
|
||||
|
||||
2008-06-30 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Functions/Calendar/calendar_scandate: unlocalised
|
||||
|
|
|
@ -598,7 +598,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp2" \
|
||||
-s "/${tmp3#*/}$ISUFFIX" \
|
||||
-W "$prepath$realpath$testpath" \
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" \
|
||||
"$pfxsfx[@]" \
|
||||
$listopts \
|
||||
-a tmp1
|
||||
else
|
||||
|
@ -608,7 +608,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp2" \
|
||||
-s "$ISUFFIX" \
|
||||
-W "$prepath$realpath$testpath" \
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" \
|
||||
"$pfxsfx[@]" \
|
||||
$listopts \
|
||||
-a tmp1
|
||||
fi
|
||||
|
@ -617,7 +617,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp2" \
|
||||
-s "$ISUFFIX" \
|
||||
-W "$prepath$realpath$testpath" \
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" \
|
||||
"$pfxsfx[@]" \
|
||||
$listopts \
|
||||
-a tmp1
|
||||
fi
|
||||
|
@ -627,7 +627,7 @@ for prepath in "$prepaths[@]"; do
|
|||
tmp4=( -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp2"
|
||||
-s "$ISUFFIX"
|
||||
-W "$prepath$realpath$testpath"
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" )
|
||||
"$pfxsfx[@]" )
|
||||
if [[ -z "$listsfx" ]]; then
|
||||
for i in "$tmp1[@]"; do
|
||||
tmpdisp=("${i%%/*}")
|
||||
|
@ -647,7 +647,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp2" \
|
||||
-s "$ISUFFIX" \
|
||||
-W "$prepath$realpath$testpath" \
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" \
|
||||
"$pfxsfx[@]" \
|
||||
$listopts \
|
||||
-a tmp1
|
||||
fi
|
||||
|
@ -716,7 +716,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf "$mopts[@]" -p "$IPREFIX$linepath$tmp3/" \
|
||||
-s "/$tmp4$i$ISUFFIX" \
|
||||
-W "$prepath$realpath${mid%/*/}/" \
|
||||
"$pfxsfx[@]" -M "r:|/=* r:|=*" $listopts - "$tmp2"
|
||||
"$pfxsfx[@]" $listopts - "$tmp2"
|
||||
done
|
||||
else
|
||||
if [[ "$osuf" = */* ]]; then
|
||||
|
@ -747,7 +747,7 @@ for prepath in "$prepaths[@]"; do
|
|||
compadd -U -Qf -p "$IPREFIX$linepath$tmp4" \
|
||||
-s "$ISUFFIX" \
|
||||
-W "$prepath$realpath$testpath" \
|
||||
"$pfxsfx[@]" "$mopts[@]" -M "r:|/=* r:|=*" $listopts -a tmp1
|
||||
"$pfxsfx[@]" "$mopts[@]" $listopts -a tmp1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue