Timeline for 'switch' based on shell
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 21, 2015 at 23:16 | comment | added | terdon♦ | The OP specifically mentioned they want to avoid having a separate script per shell. Also, your solution is checking for the existence of the shells on the system, not for what interpreter is currently reading the script, so that won't help either. Finally, note that, these days, sh is often a link to dash, but even when it is indeed a link to bash, calling bash as sh causes it to run in POSIX mode and behave more like traditional sh than bash. | |
| Oct 21, 2015 at 23:11 | history | edited | terdon♦ | CC BY-SA 3.0 | added 44 characters in body |
| Oct 21, 2015 at 23:07 | review | First posts | |||
| Oct 22, 2015 at 1:03 | |||||
| Oct 21, 2015 at 23:07 | history | answered | pgmer6809 | CC BY-SA 3.0 |