diff --git a/SC2016.md b/SC2016.md index 500967d..899d018 100644 --- a/SC2016.md +++ b/SC2016.md @@ -36,6 +36,11 @@ If you know that you want the expression literally without expansion, you can [[ echo 'PATH=$PATH:/usr/local/bin' >> ~/.bashrc ``` +``` +# We also want this variable to output $BASH_SOURCE:$LIN... during an execution trace. +PS4='+$BASH_SOURCE:$LINENO:$FUNCNAME: ' +``` + ShellCheck also does not warn about escaped expansions in double quotes: ```