I have attempted the first exercise in bash-scripting, and the wording of the question is a bit confusing to me. Here's my implementation, it passes the first test, but fails the rest. Please help, I'll appreciate.
#!/usr/bin/env bash
read name
read likes
if [ ! -z "$name" ] && [ $likes == "yes" ]
then
echo "One for $name, one for me."
else
echo "One for you, one for me."
fi
Here's the error message I get for test 2:
(from function `assert_output' in file bats-extra.bash, line 394,
in test file two_fer.bats, line 31)
`assert_output "One for Alice, one for me."' failed
-- output differs --
expected : One for Alice, one for me.
actual : One for you, one for me.
--