I have a simple script:
echo $SHELL
read test1 test2 test3 <<< "test1 test2 test3"
echo $test1 $test2 $test3
When I run it, I get:
/bin/ksh
test1 test2 test3
However, when I add line 1:
#!/bin/ksh
Now I get:
/bin/ksh
./test[3]: syntax error: `< ' unexpected
What's going on?
echo $SHELL
read test1 test2 test3 <<< "test1 test2 test3"
echo $test1 $test2 $test3
When I run it, I get:
/bin/ksh
test1 test2 test3
However, when I add line 1:
#!/bin/ksh
Now I get:
/bin/ksh
./test[3]: syntax error: `< ' unexpected
What's going on?