Bug in Learn-bash-scripting-by-building-five-programs $(( I + 4 ))

Hello there.
I’m running correct command
(
$(( I + 4 ))
)
but the terminal keeps returning an error
(
bash: 15: command not found
)

pls help <3

Doesn’t the step say to use I++?

1 Like

As the hint suggests, type(( I++ )) excluding the $ and see if something happens.

I took another screenshot where you can see what the step says.
and try entering (( I++ )) , but it still returns an error.
ty

I took another screenshot where you can see what the step says.
and try entering (( I++ )) , but it still returns an error.
ty <3

I took another screenshot where you can see what the step says.
and try entering (( I++ )) , but it still returns an error.
ty
imagen

Looks like you are making some minor syntax-related mistakes. It’s OK, bash expressions can be confusing. Note that expressions are sensitive to spaces.

For this particular challenge, there are some hints:

HINTS

  • If it didn’t print 11 for I, enter I=11 to set it to 11
  • Type $(( I + 4 )) in the terminal and press enter

First set the value for I like this: I=11.
Then, type $(( I + 4 )) [spaces included] and see the results.

2 Likes

thank you very much, that worked <3
mb

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.