let's try using env in case people have aliases mv or rm. closes #11
This commit is contained in:
1 parent
fe143668c1
commit
5d6ab0a07f
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user