On 7/11/05, Joerg Schilling <[EMAIL PROTECTED]> wrote: > 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.
Solaris /bin/sh was already capable of using the syntax: FOO=1; export FOO before my patch. So, I will assume you're referring to the other syntax I added. As far as good idea, *shrug*. It's a patch that provides optional behavior that some users may find convenient. Writing portable shell code is always the responsibility of the author regardless of which shell they use. -- Shawn Walker, Software and Systems Analyst [EMAIL PROTECTED] - http://binarycrusader.blogspot.com/ _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org https://opensolaris.org:444/mailman/listinfo/opensolaris-code