OK I installed Mandrake 10 official and all things seem to be normal. I still get the same message when I try to run a bash script.

#!/bin/env
bash


shopt -s -o nounset

declare LINE

exec 3< /home/dave/scripts/test.dat

while read LINE <&3 ; do
 printf "%s\n" "$LINE"
done

exit 0

and here is the error message I get.

[EMAIL PROTECTED] scripts]$ ./new.sh
: bad interpreter: No such file or directory
[EMAIL PROTECTED] scripts]$

Anyone have any ideas. I used whereis bash and it returned /bin/bash.
Everything seems normal and I guess I'm over my head. Anyone with any suggestions?


Thanks in advance.
Dave

--
Dave Pomeroy K7DNP SouthEastern Washington

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to