The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Nee help debugging script..plz
.
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
:
Nee help debugging script..plz
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
11-18-2006
LivinFree
Goober Extraordinaire
Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Quote:
Originally Posted by
BOFH
2. Don't use ':' as your test statement. It works for if statements but not while statements.
Huh? What shell imposes that? The following should all be equivalent in Bourne-derived shells:
Code:
while :; do echo WTF; done
Code:
while true; do echo WTF; done
Code:
while ((1)); do echo WTF; done
LivinFree
View Public Profile
Find all posts by LivinFree
Find LivinFree's past nominations received
Find LivinFree's present nominations given