diff --git a/z.sh b/z.sh index 713b452..e7c4117 100644 --- a/z.sh +++ b/z.sh @@ -107,7 +107,7 @@ _z() { -*) local opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in c) local fnd="^$PWD $fnd";; h) echo "${_Z_CMD:-z} [-chlrtx] args" >&2; return;; - x) sed -i -e "\:^${PWD}|.*:d" "$datafile";; + x) sed -i '' "\:^${PWD}|.*:d" "$datafile"; return;; l) local list=1;; r) local typ="rank";; t) local typ="recent";;