Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
Jirido opened this issue Oct 11, 2021 · 0 comments
Open

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

Jirido opened this issue Oct 11, 2021 · 0 comments

Comments

@Jirido
Copy link

Jirido commented Oct 11, 2021

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant