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.

  • wolf@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    This is not close to the halting problem, it is harder than the halting problem. ;-)