Given a shell script (with conditions, concatenations and interpolations) that builds and executes certain commands (in my case calls to ImageMagick's convert cli), is there a way to list the commands that were executed in that script? Since the script calls convert multiple times substituting args, I'd like to get a list like the following.
convert ...
convert ...
convert ...
...
I'm using zsh in OS X, but can switch to bash, etc.