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

Re: [MiNT] UNIXMODE defaults



On Wed, 2010-06-23 at 10:55 +0200, Vincent Rivière wrote:
> Alan Hourihane wrote:
> > I want to discuss UNIXMODE.
> 
> A usual, the answer it to make a list of realistic scenarios.
> For me, here they are:
> 
> 1) Minimal setup: mint.prg in the auto folder.
> I expect to boot the standard GEM desktop from the ROM, to have an U: 
> drive, support for alternate filesystems (if built into mint.prg), 
> support for long filenames in software built with the MiNTLib (ex: QED), 
> and potential multitasking abilities.
> In this case, I want an OS as close as possible to single TOS, create 
> CR/LF files, and keep away from any UNIX stuff.
> 
> 2) Intermediate setup:
> Same as minimal, but with XaAES and TeraDesk. No UNIX stuff here, this 
> is just an enhanced GEM environment.
> 
> 3) bash inside TosWin or on the BIOS console: full UNIX environment. LF 
> files by default, slashes as separators, using / as unique root.
> 
> I think the rule should be:
> MiNT is not UNIX, it is an enhanced TOS.

Actually, MiNT stands for "MiNT is not TOS". Not MiNU.

> However it can look like UNIX if the user asks for it.

The kernel sets the default UNIXMODE to "/brUs", so by default the
kernel is setting up the environment. So the user actually has to ask
for it to behave like TOS. So it's the other way around to your liking.

> Note: I plan to use 1) and 2) on the FireBee when possible.

It seems binary mode is on by default unless UNIXMODE is set to "/rUs"
from a previous long ago commit from Frank in 2000.

I think I'm going to enforce scriptability now too, which I don't think
is any significant problem given that I think most people would want the
script that starts with #! to be interpreted as a shell script.

Alan.