bashmarks does not work with "set -o noclobber" in bash
Jirido opened this issue · 0 comments
Jirido commented
While having set -o noclobber in my .bashrc, bashmarks start to get errors while adding marks
After changing the # purge line in the function _purge_line from
sed "/$2/d" "$1" > "$t"
to
sed "/$2/d" "$1" >| "$t"
it works.
I suggest a function that checks if the noclobber option is set while the script is sourced and adjust the script true a variable if it is.
If a script is run normally the "noclobber" option does not concern but as this script loads with the shell it would be good if it took this option in to concern.