diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-28 00:49:08 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-12-28 00:49:08 -0800 |
commit | 33b395806470eeac408070fec535bfd5efc20a2c (patch) | |
tree | 460b4348ea6401c36bd3488a0bf3fe12f9b4d7c4 /Functions/Zftp/zfrglob | |
parent | 200accac63deae99eb9656b26363c85648bd6748 (diff) | |
download | zsh-33b395806470eeac408070fec535bfd5efc20a2c.tar.gz zsh-33b395806470eeac408070fec535bfd5efc20a2c.tar.xz zsh-33b395806470eeac408070fec535bfd5efc20a2c.zip |
34068: create tempfiles without forking, and safe temp directory creation
Diffstat (limited to 'Functions/Zftp/zfrglob')
-rw-r--r-- | Functions/Zftp/zfrglob | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Zftp/zfrglob b/Functions/Zftp/zfrglob index 5015be77b..677b85f4b 100644 --- a/Functions/Zftp/zfrglob +++ b/Functions/Zftp/zfrglob @@ -38,7 +38,7 @@ if [[ $zfrglob != '' ]]; then () { zftp ls "$pat" >|$1 2>/dev/null eval "$1=(\$(<\$1))" - } =(: temporary file) + } =(<<<'temporary file') else if [[ $ZFTP_SYSTEM = UNIX* && $pat = */* ]]; then # not the current directory and we know how to handle paths @@ -52,7 +52,7 @@ else () { zftp ls "$dir" 2>/dev/null >|$1 files=($(<$1)) - } =(: temporary file) + } =(<<<'temporary file') files=(${files:t}) else # we just have to do an ls and hope that's right |