bashmarks icon indicating copy to clipboard operation
bashmarks copied to clipboard

bashmarks does not work with "set -o noclobber" in bash

Open Jirido opened this issue 3 years ago • 0 comments

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.

Jirido avatar Oct 11 '21 17:10 Jirido