More than once I feel like to hook all my Bash functions with a per-execute hook/function.
Is there any solutions exists already?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on your exact use case, you may be able to use the
trapcommand with theDEBUGargument.causes your_cmd to be executed after every command or line in a script.