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:
- We should not replace the
PROMPT_COMMAND if it exists and is not empty.
- 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.
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:
PROMPT_COMMANDif it exists and is not empty.DEBUGtrap (i.e. viatrap DEBUG) if it is already set.However, since the user may not be away of these conflicts, we should warn them when they occur.