summaryrefslogtreecommitdiffstats
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-15 21:58:24 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-15 21:58:24 +0000
commitd9d9925acba894045db8c52f6bb2e2fc4cd75dfd (patch)
tree6c0d27137af5833031b46598dcaa357864556ed4 /Functions
parentzsh-workers/9067 (diff)
downloadzsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.gz
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.bz2
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.lz
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.xz
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.tar.zst
zsh-d9d9925acba894045db8c52f6bb2e2fc4cd75dfd.zip
zsh-3.1.6-pws-12zsh-3.1.6-pws-12
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zftp/zfrglob10
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