Skip to content

Commit

Permalink
Add a note on the "trace" function attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Apr 26, 2022
1 parent d258414 commit 4caf63c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ bash_preexec_uninstall() {
fi
fi
}
# Note: We need to add "trace" attribute to the function so that "trap - DEBUG"
# inside the function takes an effect.
declare -ft bash_preexec_uninstall

# Run our install so long as we're not delaying it.
Expand Down

0 comments on commit 4caf63c

Please sign in to comment.