![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEST command | amatuer_lee_3 | Shell Programming and Scripting | 4 | 05-09-2008 04:36 AM |
| test command looks strange... | jjinno | Shell Programming and Scripting | 2 | 11-02-2007 03:31 PM |
| the TEST command | marwan | UNIX for Dummies Questions & Answers | 2 | 04-23-2007 03:51 PM |
| test command is not working | zam | Shell Programming and Scripting | 2 | 07-04-2006 06:42 PM |
| Linux test command | pvar | Linux | 4 | 07-15-2004 03:23 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Test command
Hello,
I am trying to add some tests to existing code. The code already contains some test commands. An example is as follows... [[ ${retCode} == 2 ]] then Does anyone know the purpose of the double equals? I would have used a single equals sign... |
| Forum Sponsor | ||
|
|
|
|||
|
Barry Rosenberg ("Hands-On KornShell93 Programming", Addison-Wesley, 1998) says (p76, Table 6-2):
Quote:
Interestingly the man page for test in AIX 5.3 doesn't refer to any of the string operators. bakunin |
|
|||
|
The double-equal is the correct syntax for ksh93, although it will tolerate the single-equal to be backward-compatable with ksh88. In ksh88 (the default AIX shell) the single-equal is correct, but the double-equal is sometimes tolerated. By "sometimes" I mean the currently supported AIX versions. I don't believe it will work with ksh under AIX43 (or even AIX51) but these have both been out of support for some time.
|
|||
| Google UNIX.COM |