![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEST command | amatuer_lee_3 | Shell Programming and Scripting | 4 | 05-09-2008 07:36 AM |
| test command looks strange... | jjinno | Shell Programming and Scripting | 2 | 11-02-2007 07:31 PM |
| the TEST command | marwan | UNIX for Dummies Questions & Answers | 2 | 04-23-2007 06:51 PM |
| test command is not working | zam | Shell Programming and Scripting | 2 | 07-04-2006 09:42 PM |
| Linux test command | pvar | Linux | 4 | 07-15-2004 06:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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... |
|
||||
|
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.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|