Hacker News new | past | comments | ask | show | jobs | submit login

I'd like a word with the person who thought that regular ( ) parentheses for grouping were a good idea in the find syntax, requiring them to be backslash-escaped in shell scripts.

The obviously right choice would have been [ ]. You know, like in

   if [ $foo ... ]



That won't work because '[' is an alias for test.


"[" as an argument to another command is fine.

"[" is just another name for the "test" command. It isn't special syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: