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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.