Skip to main content
1 of 2
Stephen Kitt
  • 481.5k
  • 60
  • 1.2k
  • 1.4k

You can add --verbose to the shebang line:

#!/bin/bash --verbose

If you’re running this on Linux, because of the way the kernel handles shebang lines, you can only add one parameter in this way. In shell scripts you can control certains shell options using set.

Stephen Kitt
  • 481.5k
  • 60
  • 1.2k
  • 1.4k