That clears up my confusion. I added a "ps" to my script and see that the actual shell being run is "sh".
The data I want is actually in a variable so I'm going to try something like:
read test1 test2 test3 <<EOF
$mydata
EOF
Thanks for the quick response!
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.