From 5741d9044d88f97833f8d086a8d3b3c4aff7958e Mon Sep 17 00:00:00 2001 From: rupa Date: Wed, 5 Feb 2014 18:04:38 -0500 Subject: [PATCH] Fix sed errors on OSX, without breaking ubuntu h/t @Keithbsmiley. Closes #125 --- z.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/z.sh b/z.sh index 786bdfd..b2955b0 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 "\:^${PWD}|.*:d" "$datafile";; + x) sed -i -e "\:^${PWD}|.*:d" "$datafile";; l) local list=1;; r) local typ="rank";; t) local typ="recent";;