Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

eFix for ksh in AIX 5.2 2

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
(Look for APAR IY50233)


Before applying:
# echo $((09 + 007))
ksh: 09 + 007: 0403-009 The specified number is not valid for this command.

After applying:
# echo $((09 + 007))
16



Description (cut from eFix readme.txt):
Problem Description
-------------------
When a variable is set to be of type integer by using typeset -i command
or integer command and let is used to set the value of the variable to a
number that starts with 0, the default base of the command is set to 8
while the actual default base should have been 10.

regards,m.

 
Sorry m, being a relative AIX novice where would one look for APARs? I'm having exactly this problem having ported a script from Solaris and a solution would be most appreciated. Thanks!
 
I am running some scripts to determine percentages. However, some of my out putt comes out ass 99 instead of 99.45. Can someone tell me how to change the decimal from 0 to 2 ?

Regards,

Don
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top