Skip to content

Instantly share code, notes, and snippets.

@mstaicu
Created January 14, 2021 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mstaicu/60992afa1c34ecc803619bc00cd8e266 to your computer and use it in GitHub Desktop.
Save mstaicu/60992afa1c34ecc803619bc00cd8e266 to your computer and use it in GitHub Desktop.
Debug shell scripts
#!/bin/bash
trap '(read -p "[$BASH_SOURCE:$LINENO] $BASH_COMMAND?")' DEBUG
var="mellon"
echo "$var"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment