Henk Langeveld wrote:
>>Nevertheless, there are some extensions in ksh93 that are NOT mandated
>>by POSIX, and maybe should be restricted when running as "/bin/sh".

Roland Mainz wrote:
> Uhm... why ? And which features do you like to exclude ?

Only for the possible use of ksh93 as the system shell (/bin/sh),
if ever, and to prevent 'extension creep'...

This is based on my major gripe with the linux habit of
using Bash for "/bin/sh",  followed by the use of all kinds
of bash extensions in all kind of utility scripts (/etc/rc*d/).
(Square bracket arithmetic and such.)

I don't have the list of non-posix features at hand - don't even
know if a full list exists, except for the posix spec itself...
But I am very sure that some ksh93 features are either optional,
or not specified in the POSIX shell.

Bash already has a ~strictlyposix~ option, active when invoked as
"/bin/sh", which is supposed to limit its behaviour.

Cheers,
Henk


Reply via email to