bash scripting

dave
2004-08-14T20:35:41Z

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.

[dave@dave scripts]$ ./new.sh
: bad interpreter: No such file or directory
[dave@dave 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