diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 21:58:24 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-12-15 21:58:24 +0000 |
commit | d9d9925acba894045db8c52f6bb2e2fc4cd75dfd (patch) | |
tree | 6c0d27137af5833031b46598dcaa357864556ed4 /Functions/Zftp | |
parent | ce9d10e465acd5a5641778154d176fd737d47eed (diff) | |
download | zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.gz zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.xz zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.zip |
zsh-3.1.6-pws-12 zsh-3.1.6-pws-12
Diffstat (limited to 'Functions/Zftp')
-rw-r--r-- | Functions/Zftp/zfrglob | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Functions/Zftp/zfrglob b/Functions/Zftp/zfrglob index 535cb8006..ee460f9b1 100644 --- a/Functions/Zftp/zfrglob +++ b/Functions/Zftp/zfrglob @@ -9,8 +9,8 @@ # stick with a single directory. This is the default. # (2) Use remote globbing, i.e. pass it to ls at the site. # Faster, but only works with UNIX, and only basic globbing. -# We do this if zfconfig[remote_glob] (or $zfrglob for -# backward compatibility) is non-null. +# We do this if the remote_glob style (or $zfrglob for +# backward compatibility) is set. # There is only one argument, the variable containing the # pattern to be globbed. We set this back to an array containing @@ -19,11 +19,9 @@ emulate -L zsh setopt extendedglob -local pat dir nondir files i +local pat dir nondir files i zfrglob -if [[ -n ${zfconfig[remote_glob]} ]]; then - local zfrglob=1 -fi +zstyle -t "$curcontext" remote_glob && zfrglob=1 eval pat=\$$1 |