diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 16:44:59 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 16:44:59 +0000 |
commit | 6e1759433b3d8e861e6146fcf9bd7a70735ec675 (patch) | |
tree | 8e736c83a6a4b0a314af123aa8660f8cdeefe3d0 /Functions/Zftp/zfrglob | |
parent | 8b3e5404ce0fad4ebe457eb521b0b487221faf6a (diff) | |
download | zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.gz zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.tar.xz zsh-6e1759433b3d8e861e6146fcf9bd7a70735ec675.zip |
zsh-workers/7632
Diffstat (limited to 'Functions/Zftp/zfrglob')
-rw-r--r-- | Functions/Zftp/zfrglob | 7 |
1 files changed, 6 insertions, 1 deletions
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 |