From cc79eda0a9b9fb50c175249fcac4ed4f1dff02a1 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Sun, 17 Mar 2013 15:03:03 +0800 Subject: [PATCH] Deal with spaces in $HOME --- z.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z.sh b/z.sh index 705e428..555b3b6 100644 --- a/z.sh +++ b/z.sh @@ -49,7 +49,7 @@ _z() { # maintain the file local tempfile - tempfile="$(mktemp $datafile.XXXXXX)" || return + tempfile="$(mktemp "$datafile.XXXXXX")" || return while read line; do [ -d "${line%%\|*}" ] && echo $line done < "$datafile" | awk -v path="$*" -v now="$(date +%s)" -F"|" '