I recently asked this question about adding a shell script to Dash:
In 14.04 how do I run a bash script I wrote without opening a terminal?
It worked perfectly.
Follow-up question: How can I pass command-line arguments through Dash? Example: In this case, my dash command is named "Panel". The script panels my screen with 8 terminals. Here's an example of the usage:
panel # Tile the screen with 8 terminal windows.
panel --left # Tile the left side with 4 terminals
panel --right # Tile the right side with 4 terminals
And so on. How can I pass arguments like --left
or --right
through Dash? Ideally I'd like to have this workflow:
- Press the SUPER key
- Type
panel --left
(for example) - Dash goes away and the left side is paneled.
Right now it runs the right script, but ignores --left
.
Tips?