lhunath/bash.academy

^ not working as intended

Opened this issue · 2 comments

Hi, I'm pretty new at this so pardon me if i'm a bit clumsy.

I was in the the Variables and Expansions section in Bash Academy when this exercise came up. Can someone explain why I'm getting the "bad substitution" output?

$ greeting="hello world"
$ echo "$greeting"
hello world
$ echo "${greetingˆ}."
-bash: ${greetingˆ}.: bad substitution
$

Thanks for your help.

chigh commented

What version of bash are you using?
C4CD9CD8-6A75-443E-A7E3-17D14878D287

7B4F77AC-DA76-47E6-9C35-3C5E8FE45F3A

$ echo $BASH_VERSION
3.2.57(1)-release

I see. Thanks.