News for hackers. Stuff that matters.
Re:Test, [, and [[ (2020) by user261 on Wednesday November 22, 2023 @10:21PM (#38388841)
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.
Re:Test, [, and [[ (2020) by computerfriend on Thursday November 23, 2023 @09:15AM (#38392966)
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.