Dennis Clarke <[email protected]> wrote:

> > If you like to get a /bin/sh with history editor, I recommend to use the
> > portable Boune Shell from ftp://ftp.berlios.de/pub/schily/
> > The POSIX standard definitely does not require /bin/sh to be a
> > POSIX.1-2008
> > compliant shell.
>
> Just put /usr/xpg6/bin:/usr/xpg4/bin in the front of the PATH and there
> are no issues.
>
> Here is a simple profile that works fine :
>
> # cat $HOME/.profile
> #       This is the default standard profile provided to a user.
> #       They are expected to edit it to meet their own needs.
>
> MAIL=/usr/mail/${LOGNAME:?}
>
> COLUMNS=80
> export COLUMNS
>
> EDITOR=/usr/xpg4/bin/vi
> export EDITOR
>
> # uncomment the next two lines if you want.
> # HOME=/root
> # export HOME
>
> LANG=C
> export LANG
>
> LC_ALL=C
> export LC_ALL
>
> LC_MESSAGES=en_US.UTF-8
> export LC_MESSAGES

It still may create issues in case you try to use scripts that do not set
LC_* and that call tr(1).

Following POSIX does not necessarily mean that you are portable and vice versa.

This is why I e.g. try to write shell scripts that only use the portable common 
subset.

Jörg

-- 
 EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
       [email protected]                (uni)  
       [email protected] (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to