I think this is the worst error I have ever seen. I have written what I have seen also here:
Example of script but continuously I get error. My plan is to see how read command works. But it seems a dodgy error in my code or terminal. I wondered if anyone has seen similar problem?
#!/usr/bin/bash
echo "Plz enter"
read text
echo "You entered $text"
echo $text
echo "$text"
Error:
$ . test.sh
Plz enter
b
': not a valid identifier
You entered
$