# Build Five Programs - Build Five Programs

**URL:** <https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973>\
**Category:** Curriculum Help\
**Tags:** bash, learning, guide, english-curriculum\
**Created:** [October 8, 2026, 4:22pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973 "2026-10-08T16:22:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![verus2200](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@verus2200](https://forum.freecodecamp.org/u/verus2200)\
**Post date:** [October 8, 2026, 4:22pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/1 "2026-10-08T16:22:14Z")

</div>

### Tell us what’s happening:

I think I encountered a CodeRun/ Codespaces error. The code looks ok to me but on the last step on program 4 I get: “Your script should have the suggests “if” statement added correctly” which is totally unrelated to the modification I had to make(Add an empty line in front of response). I tried hitting Reset and now I get: Test Runner Failed. I tried refresing the page, closing and opening the terminal, nothing works.  
I also noticed other users had similar problems, please tell me what’s wrong.

### Your code so far

### Your browser information:

User Agent is: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36`

### Challenge Information:

Build Five Programs - Build Five Programs

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/relational-databases-v9/workshop-bash-five-programs/build-five-programs)**
>
> Learn to Code for Free

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/workshop-bash-five-programs/5f5904ac738bc2fa9efecf5a.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-bash-five-programs/5f5904ac738bc2fa9efecf5a.md)

---

<div class="post-metadata">

**Author:** ![verus2200](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@verus2200](https://forum.freecodecamp.org/u/verus2200)\
**Post date:** [October 8, 2026, 4:24pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/2 "2026-10-08T16:24:08Z")

</div>

```auto
#!/bin/bash
#Program to tell a persons fortune
echo -e "\n ~~Fortune Teller~~ \n"
RESPONSES=("Yes" "No" "Maybe" "Outlook good" "Don't count on it" "Ask again later")
N=$(( RANDOM % 6 ))
echo -e "\n${RESPONSES[$N]}"

GET_FORTUNE() {
  if [[! $1]]
  then
    echo "Ask a yes or no question:"
  else
    echo "Try again. Make sure it ends with a question mark:"
  fi
  read QUESTION
}

GET_FORTUNE

until [[$QUESTION =~ \?$]]
do
  GET_FORTUNE again
done

```

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [October 8, 2026, 4:47pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/3 "2026-10-08T16:47:50Z")

</div>

Hi @verus2200

Try moving this `echo` to the last line in the script:

> [@verus2200](#):
>
> `echo -e "\n${RESPONSES[$N]}"`

If that doesn’t not work, please post a screen grab of the terminal and instructions.

Happy coding

---

<div class="post-metadata">

**Author:** ![verus2200](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@verus2200](https://forum.freecodecamp.org/u/verus2200)\
**Post date:** [October 8, 2026, 4:54pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/4 "2026-10-08T16:54:12Z")

</div>

I did that but I still get “Test Runner Failed” error. That happens since I hit the Reset button.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/0/2/2/02219f41acf3f0827fd0840a148138f3527e4224.png)

In the terminal I also get these messages after Reset:

```auto
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory
bash: /workspace/project/.freeCodeCamp/test/.cwd: No such file or directory
camper: /project$ ./fortune.sh
bash: /workspace/project/.freeCodeCamp/test/.next_command: No such file or directory

~~Fortune Teller~~

Don't count on it
Ask a yes or no question:
jhghj

```

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [October 8, 2026, 5:44pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/5 "2026-10-08T17:44:31Z")

</div>

Did you add an empty line in front of where you print the response?

So, like Teller said, put your response line at the end of your script file, then add another echo before it to make an empty line.

Try that.

---

<div class="post-metadata">

**Author:** ![verus2200](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@verus2200](https://forum.freecodecamp.org/u/verus2200)\
**Post date:** [October 8, 2026, 5:58pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/6 "2026-10-08T17:58:48Z")

</div>

Yes, I did.

This is the modification the last step needs to complete:

```auto
echo -e "\n${RESPONSES[$N]}"

```

But I as said before, it doesn’t matter if I move the line to the end of the script, now the **“Test Runner Failed”** error shows up (see printscreen) . This happened after I hit the Reset button, because initially the error I got was _“Your script should have the suggests “if” statement added correctly”_ which in nonsense.

I also tried rebuilding the container and still I get Test Runner Failed.

---

<div class="post-metadata">

**Author:** ![verus2200](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@verus2200](https://forum.freecodecamp.org/u/verus2200)\
**Post date:** [October 9, 2026, 10:02am UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/7 "2026-10-09T10:02:51Z")

</div>

so no solution? do I have to start over again?

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [October 9, 2026, 6:32pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/8 "2026-10-09T18:32:25Z")

</div>

Hi @verus2200

Please post your full code.

Happy coding

---

<div class="post-metadata">

**Author:** ![honey1900](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/honey1900/32/423520_2.png) [@honey1900](https://forum.freecodecamp.org/u/honey1900)\
**Post date:** [November 5, 2026, 12:31pm UTC](https://forum.freecodecamp.org/t/build-five-programs-build-five-programs/801973/9 "2026-11-05T12:31:52Z")

</div>

Looks like the codespace is stuck and missing files .. can any one confirm after full reset it worked?
