Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
Note that the [ character is a Unix/Linux command NOT a shell builtin. If you look at /usr/bin on most systems: lrwxrwxrwx 1 root root 4 Jun 3 18:18 [ -> test So, what that line really is: while test read $line ]; do Also note that read is a Unix command, but not a linux command. >From Compaq Tru64 Version 4.0F: -rwxr-xr-x 1 bin bin 1518 Apr 12 1999 /bin/read And remember that the original question was in regard to Digital Unix (eg. Tru64). Derek Martin wrote: > > while [ read $line ]; do > > This test is always true, because the string "read" contains > characters. However, you haven't asked it to read a line, so the > variable $line is always null for the duration of your script (unless > it inherited a value from the parent shell). -- Jerry Feldman <gaf at blu.org> Boston Linux and Unix user group http://www.blu.org - Subcription/unsubscription/info requests: send e-mail with "subscribe", "unsubscribe", or "info" on the first line of the message body to discuss-request at blu.org (Subject line is ignored).
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |