From 6e1759433b3d8e861e6146fcf9bd7a70735ec675 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 2 Sep 1999 16:44:59 +0000 Subject: zsh-workers/7632 --- Functions/Zftp/zfrglob | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Functions/Zftp/zfrglob') diff --git a/Functions/Zftp/zfrglob b/Functions/Zftp/zfrglob index f9d67b3f2..fad0c3849 100644 --- a/Functions/Zftp/zfrglob +++ b/Functions/Zftp/zfrglob @@ -9,7 +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 $zfrglob is non-null. +# We do this if zfconfig[remote_glob] (or $zfrglob for +# backward compatibility) is non-null. # There is only one argument, the variable containing the # pattern to be globbed. We set this back to an array containing @@ -20,6 +21,10 @@ setopt extendedglob local pat dir nondir files i +if [[ -n ${zfconfig[remote_glob]} ]]; then + local zfrglob=1 +fi + eval pat=\$$1 # Check if we really need to do anything. Look for standard -- cgit 1.4.1