bash.academy icon indicating copy to clipboard operation
bash.academy copied to clipboard

^ not working as intended

Open tskinnar opened this issue 5 years ago • 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.

tskinnar avatar Oct 25 '20 17:10 tskinnar

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

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

chigh avatar Oct 25 '20 22:10 chigh

$ echo $BASH_VERSION 3.2.57(1)-release

I see. Thanks.

tskinnar avatar Oct 26 '20 01:10 tskinnar