How can you show a Bash script with the extension of its variable? I want to see what the script will actually execute, without doing anything
There are three relevant options:
-
-n
- do not execute -
-v
- show the code as it read -
-x
- Show the code as executable
AFAIK, you can not see extended variables -n
in effect, but unless - You can not execute the code until n
is not in effect. Therefore, broadly, you have to execute the script to see the extended variable.
Comments
Post a Comment