5 ms·
When you insert this in the first line of your script #!/bin/bash The specified program is run. From that point on, the bits you're executing in that scr
by bdunbar 13y ago
When you insert this in the first line of your script
#!/bin/bash
The specified program is run. From that point on, the bits you're executing in that script are 'bash' no matter what the shell you called it from is.
I've been running zsh on my local system, and happily writing [bash, csh, perl, ruby] using this trick.