Created
August 4, 2018 21:47
-
-
Save harobed/18384140fc8a34564410c64da0454c68 to your computer and use it in GitHub Desktop.
Print a trace of commands in bash without variable expansion
This file contains 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
#!/bin/bash | |
set -T | |
trap 'echo "> $BASH_COMMAND"' DEBUG | |
i=1234 | |
echo "$i" | |
(echo $i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: