3 ms·
Yikes. This is why I do not use bash. Too complicated. For Linux, I added tab autocomplete to dash and use that for both interactive and non-interactive shel
by 1vuio0pswjnm7 4y ago
Yikes. This is why I do not use bash. Too complicated.
For Linux, I added tab autocomplete to dash and use that for both interactive and non-interactive shell instead of bash.
Saves keystrokes and bytes. No need to keep typing "#!/bin/sh" into every script.
- chasil 4y agoYou can compile dash with a line editing library, but it does not come in most packages.
- 1vuio0pswjnm7 4y agoI use libedit. I am used to NetBSD sh; dash is similar, derived from the same source. I wanted dash to behave more like NetBSD sh, so I changed it. Anyway, I am not a huge fan of "packages". (The problems described in this thread are one reason why.) Of course I use packaged binaries in some instances, but normally I only install them when needed, use them and then uninstall them when I am done. I prefer to compile the kernel and userland myself. That includes the shell. Simply compiling dash with libedit does not provide tabcompletion. Need to make some small changes.