Skip to content

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

@Jirido

Description

@Jirido

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions