answer, pls.
Le 24/07/2012 03:55, Cyrille Lefevre a écrit :
Hi,
would it be possible to add a trick to temporary disable the next
warning as in lint /* ARGUSED */, etc.
the purpose of this is that I've a lot of ksh88 script I verify using
ksh93 but which needs to stay obsolete
because they are :-)
under HP-UX's ksh and /usr/bin/sh, [[ $a = a* ]] is ok but [[ $a == a*
]] isn't under /usr/bin/sh
unfortunatelly, HP-UX's ksh88 is missing the ! keyword, so, I have to
use /usr/bin/sh which
have the ! keyword but is missing the [[ $a == a* ]] syntax
something like :
if [[ $a = a* ]]; then
=> '=' obsolete, use '=='
# KSH_COMPAT, KSH_NOWARN, KSH_NOTOBSOLETE or just NOTOBSOLETE, or ever
IKNOWTHISISOBSOLETE :-)
if [[ $a = a* ]]; then
=> no warn
well, KSH_COMPAT, KSH_NOWARN or NOTOBSOLETE should of course be more
performant than the others wince they are shorter :-)
yet another example :
(( rc = ${not} rc ))
=> variable expansion makes arithmetic eval
where $not may be empty or contains "!"
Regards,
Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers