News for hackers. Stuff that matters.
Re:Writing Robust Bash Shell Scripts by ralph on Saturday January 14, 2012 @06:45PM (#3465733)
Or

    if [[ $filename == foo ]];
Re:Writing Robust Bash Shell Scripts by Nick_C on Tuesday January 17, 2012 @10:11AM (#3475119)
Which is the correct idiomatic way. The article's author is wrong in enclosing foo in quotes.