#!/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
Give this a try:
#!/bin/sh while [ true ] do echo "WTF" done
Please pay special attention to the spaces in the line 'while [ true ]'