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
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
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