Quote:
quote:Originally posted by williamlin
: command not found
: command not found
'irst: line 9: syntax error near unexpected token `do
'irst: line 9: `do
Above words are the error msg after I run the command "/bin/sh first"
which showed on page 26.
|
William, I get exactly the same error message when running Knoppix 3.7 as either 'root' or any other user! Running it under Ubuntu's "Warty Warthog" (another 'debian-based' Linux version) is also exactly the same! Now, notice this very similar, but not exactly the same output:
Code:
: command not found
: command not found
'irst: line 9: syntax error near unexpected token `
'irst: line 9: `
I got this after placing a
blank line between the one with "for files in *" and the "do" line.
HOWEVER, that's far from the end of my testing! If you set the "first" script's permissions to be an executable file, and ENTER it like this:
./first, then I end up getting this error message:
Code:
: bad interpreter: No such file or directory
What makes this
so frustrating is the fact that I got the whole thing to work just fine when ENTERING the commands line by line as shown in the book; well, actually the book shows a slight variation of "first" but I then entered "first"'s lines and yes, it does work that way! I'm going to try running this in a completely different version of Linux and see if its "bash" is acting the same way... later...
The Starman
http://thestarman.dan123.com/