[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tcsh 6.03, BSD sh, mntlib



> Yes...I still feel there are too many broken shells out there, but I
> have received a many examples in email of cases where the current
> emulation in the library loses badly.  I've come to the conclusion
> that it would be nice to provide both methods and let the user choose
> via an environment variable which way to go (e.g. if your shell works
> good enough, you can enable the exec-/bin/sh version of system() and
> popen()).  I am (as I believe I said in another message) open to
> discussion on which should be the default, and how this should be
> controlled (a new env var, or a switch in UNIXMODE?)

I think a UNIXMODE switch would be sufficiant.  The default should be not
to use /bin/sh (under both MiNT and TOS, for backward compatibelity of new
binaries to not-well-configured systems).  If UNIXMODE switch "s" is present,
/bin/sh should be used.  The device to load it from should be the default 
root device (_rootdir), which is initialized from UNIXMODE, too (in 
mntlib/main.c), and which defaults to U: under MiNT.

Michael
--
Internet: hohmuth@freia.inf.tu-dresden.de