The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
for:badly formed number
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
for:badly formed number
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
06-05-2008
fabtagon
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
fabtagon
View Public Profile
Find all posts by fabtagon
Find fabtagon's past nominations received
Find fabtagon's present nominations given