I wonder is there any program that can take a bash script as input and print out all bash commands it will run? A program that would unroll loops, expand environment variables and generally not perform any destructive action nor call any external binaries. It’s like a dry run of sorts.

  • tvcvt@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    This is great—I’ve somehow never noticed set -n before. Very helpful.