Functionality difference between HP-UX Release 10.20 and 11.00

Hi All,

What is the difference with respect to functionality point of view, between HP-UX Release 10.20 and HP-UX Release 11.00?
Does the if condition statement in the shell script behave differently in these two releases?

See Release Notes for HP-UX 11.0.

I'm not sure what you're asking with the second question. There are differences between the releases and they can be detected via a shell script.

HI All,

Thanks for the response.

The problem is something like this.

I had coded in HP-UX Release 11.00. The code contained some checks in the form of IF clauses eg..
IF [ "$var1" -eq "200" ] ; then
echo "just an example"
FI

The first field of a file nohup.out (FTP log) was being fetched (by cutting) into a variable "var1". I guess that was making it a string datatype instead of numerical.

The comparison in the IF statement as you can see above is for numerical type.

When tested on Release 11.00 it worked fine but on testing on Release 10.20 it threw the following error :
"cust_runer[194]: 221-Total: The specified number is not valid for this command."

The following error disappeared when i changed the comparison symbol from "-eq" to "=".

So my query is why such difference in behaviour, there has to some explanation to it.

I hope I have been elaborate in my explanation of the problem.

Please help me in finding an explanation.

Thanks.

Put in a line like:
echo var1 = $var1

in front of the if statement. You're getting a different value in var1.