let's try using env in case people have aliases mv or rm. closes #11

This commit is contained in:
rupa committed 2011-02-06 18:55:51 -05:00
1 parent fe143668c1
commit 5d6ab0a07f
1 file changed
+3 -3
+3 -3
View File
@@ -54,7 +54,7 @@ z() {
} else for( i in rank ) print i "|" rank[i] "|" time[i]
}
' "$datafile" 2>/dev/null > "$tempfile"
mv -f "$tempfile" "$datafile"
env mv -f "$tempfile" "$datafile"
# tab completion
elif [ "$1" = "--complete" ]; then
@@ -155,9 +155,9 @@ z() {
}
' "$datafile")"
if [ $? -gt 0 ]; then
rm -f "$tempfile"
env rm -f "$tempfile"
else
mv -f "$tempfile" "$datafile"
env mv -f "$tempfile" "$datafile"
[ "$cd" ] && cd "$cd"
fi
fi