Skip to content

Be a good shell citizen #12

@spl

Description

@spl

The point of this project is to hook into parts of the Bash system to allow functions to be run. However, the Bash system is complex, users of this project may have complex configurations, and there may be other parts trying to do similar things as this project. In those cases, it would be better for users if we do not assume that we are the only ones doing anything interesting.

Concretely, this means:

  1. We should not replace the PROMPT_COMMAND if it exists and is not empty.
  2. We should not clear the DEBUG trap (i.e. via trap DEBUG) if it is already set.

However, since the user may not be away of these conflicts, we should warn them when they occur.

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