Operating System - HP-UX
1825771 Members
2127 Online
109687 Solutions
New Discussion

Weird behaviour of ksh after PHCO_21185 applied.

 
John Palmer
Honored Contributor

Weird behaviour of ksh after PHCO_21185 applied.

For information:-

The above patch is in the September 2000 Support Plus bundle for HP-UX 11.00

Having applied the bundle I started getting intermittent script failures. Tracked this down to #!/usr/bin/ksh scripts which checked an argument to be numeric within getopts with :-
if [[ $OPTARG = [1-9]*([0-9]) ]];

This construct intermittently returned false for a valid numeric argument. Changing the script to #!/usr/bin/sh removed the problem.

There is a document (found by searching for PHCO_21185) which details a bug fix to ksh in this area but concerning 'escaped' strings.

I have subsequently installed the latest ksh patch (PHCO_222020) and not seen the same problem... yet.

Regards,
John
1 REPLY 1
sys-sbd
Advisor

Re: Weird behaviour of ksh after PHCO_21185 applied.

Hi all,

I have resolve the problem with :
-remove the PHCO_21185
-install the PHCO_22712

Regards,
Hassan