Merge pull request #86 from matthiasgoergens/master

Deal with spaces in $HOME when creating tempfile
This commit is contained in:
rupa committed 2013-03-17 17:23:59 -07:00
commit a41f9c6ea7
1 file changed
+1 -1
+1 -1
View File
@@ -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"|" '