Created
January 17, 2018 09:33
-
-
Save PaulChana/c1da5b30e0b4fb35fc44fd3f97976715 to your computer and use it in GitHub Desktop.
[Override echo] Override echo for debugging #bash #shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_mode=debug | |
echo () | |
{ | |
[[ "$run_mode" ]] && builtin echo $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment