Subject: Re: ksh [was: Re: miniroot for NetBSD/i386?]
To: Igor Sobrado <igor@string1.ciencias.uniovi.es>
From: Simon J. Gerraty <sjg@crufty.net>
List: port-i386
Date: 03/20/2006 07:52:26
>> >case $- in
>> >*i*)	# do things for interactive shell
>> 
>> I use this in ksh.* since ksh is known to support it
>> but my /etc/profile works with pretty well any bourne shell,
>> So makes as few assumption as possible.
>
>This case/esac structure should be supported by any standard Bourne-like

Sorry I was refering to relying on $- containing i.

>Setting the $ENV variable as outlined in my previous message will
>allow moving the OS-specific parts of the initialization script to
>~/.profile.<uname> files that will be executed automatically.
>Certainly it is not clean installing ten or so ~/.profile.* files

I aim to not need ~/.profile for most users.  But the above idea can
also be applied to /etc/profile.* - which I do for site overides etc.
If I were starting out again, I might do it for the os bits too.

Thanks
--sjg