Re: tcsh 6.03, BSD sh, mntlib [message #6992] |
Mon, 30 July 2012 23:57 |
|
Originally posted by: hohmuth@freia.sax.de
> 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
|
|
|
tcsh 6.03, BSD sh, mntlib [message #6993 is a reply to message #6992] |
Fri, 26 March 1993 18:10 |
|
Originally posted by: entropy@terminator.rs.itd.umich.edu
>> 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.
This sounds good to me. Anyone want to volunteer to implement it?
cheers,
entropy
|
|
|