Hacker News new | ask | show | jobs
by user261 944 days ago
I really didn't understand why the last if statement is confusing. Is it because when starting out with shell scripting one would usually assume that the [ is a part of the bash scripting language not just another program? If it's then I think I get it now. Otherwise please mention why it's surprising. Also, @author thanks for a nice article. was a good reed.
1 comments

Even if you don't know about [ as a binary, I still don't see how it's confusing. Seems like very normal bash to me.