#!/bin/sh
while true ; do
echo "WTF"
done
This is giving a syntax error: syntax error: unexpected end of file (expecting "do")
I also tried:
#!/bin/sh
while :
do
echo "WTF"
done
#!/bin/sh
while true ; do
echo "WTF"
done
This is giving a syntax error: syntax error: unexpected end of file (expecting "do")
I also tried:
#!/bin/sh
while :
do
echo "WTF"
done
I suspect line endings.
Try:
And look for
0d 0a
sequences. You can strip\r
(0d
) with thetr
command:Give this a try:
Please pay special attention to the spaces in the line 'while [ true ]'