diff --git a/z.sh b/z.sh index c400a95..fd81b59 100644 --- a/z.sh +++ b/z.sh @@ -57,7 +57,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 "\:^${PWD}|.*:d" "$datafile";; + x) sed -i -e "\:^${PWD}|.*:d" "$datafile";; l) local list=1;; r) local typ="rank";; t) local typ="recent";;