From 33b395806470eeac408070fec535bfd5efc20a2c Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 28 Dec 2014 00:49:08 -0800 Subject: 34068: create tempfiles without forking, and safe temp directory creation --- Functions/Zftp/zfrglob | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions/Zftp/zfrglob') 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 -- cgit 1.4.1