"I. Szczesniak" wrote: > On 5/28/08, Garrett D'Amore <gdamore at sun.com> wrote: [snip] > > for either new > > names in the language, or to reserve it for script author use (e.g. > > names with a certain prefix are guaranteed to be "safe".) > > It was always good practice to avoid C language keywords in shell > scripts. Quoting the Opensolaris programming style guide: > Do not use function names which are reserved keywords (or function > names) in C/C++/JAVA or the POSIX shell standard (to avoid confusion > and/or future changes/updates to the shell language).
Erm... note that http://www.opensolaris.org/os/project/shell/shellstyle/ was never signed-off as new shell style guide for OS/Net by the OS/Net C team or gatekeepers. Right now it has more the level of "suggestions what may be nice/wise to-do to avoid trouble or to make your scripts more portable and faster". It may be nice to get the old OS/net styleguide replaced with it but that requires more discussion in on-discuss at opensolaris.org ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)