Tell us what’s happening:
I am trying to get passed the echo -e “\n~~ Questionnaire ~~\n” part of the challenge and it won’t let me pass. Keeps giving me this error: Your script should “echo” the suggested text correctly
I have even checked the hint and copied/pasted it into my code and still won’t pass.
Your code so far
#!/bin/bash
echo -e \n~~ Questionnaire ~~\n
QUESTION1="What's your name?"
QUESTION2="Where are you from?"
echo $QUESTION1
read NAME
echo $QUESTION2
read LOCATION
echo -e "\n~~ Questionnaire ~~\n"
echo Hello $NAME from $LOCATION.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Challenge Information:
Learn Bash Scripting by Building Five Programs - Build Five Programs
Step information:
It didn’t print the empty lines. echo
will only print empty lines if the value is enclosed in quotes. Place double quotes around the title that gets printed to see if it works.