Michael Shapiro wrote:
>
> > Roland> Does Sun have any coding (style) guidelines/notes for Bourne/Korn/
> > Roland> POSIX shell scripts ?
> >
> > Danek> No, only C (and, by some extension, C++) and Java. Shell, perl, and
> > Danek> python are missing.
> >
> > James> Actually, there was a draft shell coding style guideline document
> > James> at one time -- kept in a gatekeeper's home directory, if I recall
> > James> correctly. John Beck probably remembers the details.
> >
> > I do, and a few minutes ago when Roland's query came in, I forwarded it to
> > that former gatekeeper, Mike Shapiro, thinking it would not be polite to
> > publish something from his home directory without his permission. I have
> > copied Mike on this reply so he can post his shell style guide when he has
> > the chance.
>
> I'm more than happy for it to be published, just ask that you keep
> the attribution on it so people who have questions and complaints
> can whine at me directly. Maybe when we're done with ksh93 we
> can have a mode which enforces it automatically built-in :)
With a future putback OS/Net may get ksh93's shell script compiler
("shcomp") which has some kind of "lint" functionality... maybe we could
run it by default within OS/Net to catch some of the ugly things out
there (currently "shcomp" doesn't catch everything but AFAIK it can be
"beefed-up" a lot) ...
... but I still need a sponsor for such a thing
(http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6561901),
per April's suggestion someone from the kernel folks since my patch
includes a javaexec-style kernel module ("shbinexec") which recognizes
the compiled shell script format and calls the matching interpreter for
it...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) [EMAIL PROTECTED]
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code