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

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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