plugins/bashmark: resolves conflict between noclobber and bashmark (#127)
Fixes #50
This commit is contained in:
parent
ec1921490f
commit
098e3ff368
@ -186,7 +186,7 @@ function _purge_line {
|
|||||||
trap "/bin/rm -f -- '$t'" EXIT
|
trap "/bin/rm -f -- '$t'" EXIT
|
||||||
|
|
||||||
# purge line
|
# purge line
|
||||||
sed "/$2/d" "$1" > "$t"
|
sed "/$2/d" "$1" >| "$t"
|
||||||
/bin/mv "$t" "$1"
|
/bin/mv "$t" "$1"
|
||||||
|
|
||||||
# cleanup temp file
|
# cleanup temp file
|
||||||
|
Loading…
Reference in New Issue
Block a user