Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » Atari MiNT Mailing List » Re: tcsh 6.03, BSD sh, mntlib
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: tcsh 6.03, BSD sh, mntlib [message #6992] Mon, 30 July 2012 23:57
Anonymous
Karma:
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 Go to previous message
Anonymous
Karma:
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


  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: shared libraries for MiNT
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 16:57:57 EDT 2024

Total time taken to generate the page: 0.08063 seconds