3 ms·
Whoever made the guide is unexperienced in the tasks he writes about. Otherwise he'd know about [[ and ((. Were it an intro for non-bash shells, it would be an
by acqq 15y ago
Whoever made the guide is unexperienced in the tasks he writes about. Otherwise he'd know about [[ and ((. Were it an intro for non-bash shells, it would be an acceptable omission. And you're not really explaining how to write conditions if you aren't explaining this:
# d=abc
# [ $d -eq 25 ]
-bash: [: abc: integer expression expected
It also looks to me that aboutlinux.info is in fact just a for-SEO-purposes generated site. Anybody knows more?