Shawn Walker <[EMAIL PROTECTED]> wrote:

> As an exercise in learning a small part of the OpenSolaris codebase, I
> decided to add the ability to export variables via the "commonly
> accepted" syntax that many shells support to /usr/src/cmd/sh (the
> default Solaris shell I believe). I spent at least a few hours today
> reading through the Bourne shell source code, trying to understand
> exactly how it parses each command, what process it goes through, etc.
>
> So, after applying the patch linked below you should be able to:
>
> * Export variables the original way:
>
> FOO=1; export FOO

I am not sure if this would be a good idea as currently the Solaris /bin/sh
helps to detect non-portable code.

Users should rather use:

FOO=1 export FOO

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/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to