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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start 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