Supply a dry-run option for bash, something akin to a combination of the -x and -n options. When a script is processed by bash in dry-run mode there is output to stdout the sequence of commands that bash determines to run, something like -x, but the commands are not in fact executed, as with -n

If the output were to be captured as a script, that script itself could be run by a normal invocation of bash, giving the same result, output and side-effects, as the original script would give. If the
captured script were executed in dry-run mode the output should be the same as the input.

A typical use is to determine what a complicated script, like libtool, will end up doing in the particular situation where it is used.

There is a scheme to determine which commands are dry-run (not all should be) and what to do when the behaviour of the script would depend on the output of commands that were never run.

Code so far posted is quite immature.

Project Activity

See All Activity >

Follow bash-

bash- Web Site

You Might Also Like
Cloudflare secures and ensures the reliability of your external-facing resources such as websites, APIs, and applications. Icon
It protects your internal resources such as behind-the-firewall applications, teams, and devices.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of bash-!

Additional Project Details

Registered

2014-03-09