09-17-2018, 02:00 AM
#2 on the same page
I used a lot of time and tried all kind of things for the increment exercise. Including all from Stack Exchange and AskUbuntu on questions about increments, not specifically this book or exercise.
Eventually I tried changing the final line to
Rather than as I was using which was
From earlier in #2 section.
Felt a bit silly but was glad I got there in the end.
Hope it saves someone some time in making the same mistake as I had.
I used a lot of time and tried all kind of things for the increment exercise. Including all from Stack Exchange and AskUbuntu on questions about increments, not specifically this book or exercise.
Code:
let no1++
Eventually I tried changing the final line to
Code:
echo $no1
Rather than as I was using which was
Code:
echo $result
From earlier in #2 section.
Felt a bit silly but was glad I got there in the end.
Hope it saves someone some time in making the same mistake as I had.