Using a command file for a shell script. - Printable Version +- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum) +-- Forum: General discussion (https://yab.orgfree.com/forum/forumdisplay.php?fid=8) +--- Forum: yoshi (https://yab.orgfree.com/forum/forumdisplay.php?fid=12) +--- Thread: Using a command file for a shell script. (/showthread.php?tid=67) |
Using a command file for a shell script. - bbjimmy - 05-01-2016 Since yoshi does a good job of ignoring lines that do not have yoshi commands, one can use the same file for a bash scrip. copy the foollowing and save the file as "viewtext" then set the executable bits. This will display the Yoshi command file in a text display, then chose to run yoshi Default or not depending on the cancel button. Code: #!sh RE: Using a command file for a shell script. - clasqm - 05-02-2016 Interesting. You're relying on the fact that bash is a fairly primitive interpreter that works strictly line-by-line, unlike, say, the yab interpreter, which checks the entire program for errors before it is run. This opens up a lot of possibilities. I must think about this. |