Skip to content

Commit

Permalink
Problem: sit-mr-merge garbles output with BSD sed
Browse files Browse the repository at this point in the history
This is the same problem sit-mr once had

Solution: use -E flag to enable regular expressions
  • Loading branch information
yrashk committed Aug 1, 2018
1 parent a0bdcad commit 34f89c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/sit-mr-merge
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ else
echo "# Leave a comment below. All lines starting with # will be removed" > text
echo "${comment}" >> text
$editor text || exit 2
sed -i '/^#/ d' text
sed -iE '/^#/ d' text
${sit} -d ${curdir} record -t Commented,Merged,Closed ${item} text record || exit 2
fi

Expand Down

0 comments on commit 34f89c3

Please sign in to comment.