Vikash, > i read that test command has been deprecated in opensolaris ksh . ( refer > http://opensolaris.org/os/community/on/shellstyle/ ) > Does that mean that command like > test -n $foo && echo $foo > will no more work???
We need to get a grip here, the document that you refer to, and the one that supersedes it (as suggested by William) are in no way concerned with any _functionality_ changes in the ksh scripting language (or any other). They are simply _style_ change (and/or script language) guidelines. Ksh/other script languages will retain backwards compatibility forever... or at least for a good while. These documents only outline (and from the language held within in some cases, mandate) the style that should be used wrt init.d scripts (in the case of your document reference), and SMF scripts (in the case of William's referred-to draft document). Similarly, Rich's point about not writing anything in csh (whilst being entirely true and accurate - csh is _really_ dead by now), in this scenario only applies to precluding the use of "#!/usr/bin/csh" at the head of any init.d scripts, and csh-specific stuff in the script body. Please do not infer that shell functionality will change as dictated by either of the documents - they simply suggest/mandate scripting _style_ guidelines. HTH... Sean.
