Skip to main content

Module scratch

Module scratch 

Source
Expand description

Scratch material for tests built on the rig: a directory of bash scripts, the command line that runs one, an answer that sources a file, and accounts — shells built by hand where none need run.

Deliberately public: a crate driving its own rigs writes the same tests this one does.

Modules§

accounts
The account a shell gives of itself, built by hand.

Structs§

Scripts
A directory of bash scripts, removed when this is dropped — so it must be held for as long as the run that reads it.

Functions§

bash
bash <script> — the command line, program included, since a run starts whatever its argv names.
sourcing
Write bash of your own and answer with a command to source it.