Skip to main content
8 events
when toggle format what by license comment
Mar 26, 2023 at 13:19 comment added Stéphane Chazelas @Kajukenbo, again dash supports set -o vi (note that in bash, the vi mode is also optional and can be disabled at build time). POSIX specifies a standard API. IMO, the shell's line editor does not belong there and should be removed from the standard or at least moved to the User Portability option. For instance, that line editor does not make sense on embedded systems. Note that ksh88 has many non-compliances and bugs, far more so than dash. If you want a more compliant shell, you can have a look at bosh or yash (each also coming with their own issues).
Mar 26, 2023 at 12:42 comment added Kajukenbo I get the point that it is supposed to be small and fast, but how can people claim dash to be POSIX complaint all the time if it is not? set -o vi is very clearly part of the standard for /bin/sh. FWIW, I have no interest in using something like zsh or fish. I guess I will just stick with ksh88-based implementations. I doubt a simple recompile will fix all of the discrepancies anyway. Thanks for the reply.
Mar 26, 2023 at 11:18 comment added Stéphane Chazelas @Kajukenbo, set -o vi (or set -o emacs) works if you enable it at compile time (configure --with-libedit), but the point of dash is to provide a simple robust and efficient interpreter for the sh language that can be used for system()/popen() or interpret #! /bin/sh - scripts. It's not intended for interactive use. Look at shells like zsh or fish for that.
Mar 26, 2023 at 8:49 comment added Kajukenbo Does anyone know if there are any plans to add a more complete POSIX feature set to "dash"? At least in Debian, things like the set -o vi directive does not work at all.
Feb 3, 2023 at 6:07 vote accept cubernetes
Jan 19, 2023 at 13:01 history edited Stéphane Chazelas CC BY-SA 4.0
added 219 characters in body
S Jan 19, 2023 at 12:54 history answered Stéphane Chazelas CC BY-SA 4.0
S Jan 19, 2023 at 12:54 history made wiki Post Made Community Wiki by Stéphane Chazelas