[Vm-dev] with: do: in (ba)sh scripts

gettimothy gettimothy at zoho.com
Fri Jun 13 19:58:48 UTC 2014


He Eliot


http://www.menmachinesmaterials.com/Flat/image/scratch.sh


On Bash, functions have to be declared before they are used. 
The code starts at the variable declarations and the array iteration loop


In the loop, the code creates the 'Newspeak Spur Virtual Machine'  and the 'Newspeak Virtual Machine'  directories (you probably aready have them, so skip that command in the script)

it then touches a file named by the index of the array
it then calls the function with the current pdir array item as an argument.
a new director is created from the indexed name in the ddir array
a copy of the 'touched' file is copied to that new directory.


The code ran on my linux box.


Hopefully that can get you started.







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20140613/9ccefde6/attachment.htm


More information about the Vm-dev mailing list