The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 06-05-2008
fabtagon fabtagon is offline
Registered User
  
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 189
error message does (in my eyes, generally I don't use ksh) not match the code.

Only point that matches numbers in any way:

However: Bourne-comment (mostly be the same on ksh): use

Code:
if ( "$depth" -eq "64") then

instead of

Code:
if ($depth==64) then

-eq => numerical comparison
"" => prevents problems when $depth is empty