Deal with spaces in $HOME

This commit is contained in:
Matthias Goergens committed 2013-03-17 15:03:03 +08:00
1 parent 7f2b9189a0
commit cc79eda0a9
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"|" '