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

Agree. Also, http://wiki.bash-hackers.org/doku.php has tons of great info. Sad that TLDP gets all the Google ranking for most bash searches when wooledge and BHW typically have much more detailed and modern (e.g. using "${var}" and [[ instead of [ ) explanations.

Lastly, if you're really stuck on a bash problem, head on over to #bash in Freenode and the awesome people there will very likely help! Greycat hangs out there.




> [[ instead of [

I have yet to see a good rationale for this. If you need the additional operators [[ provides, such as regular expression matching, great. Otherwise, why not just use [ and remain portable?


If you're worried about portability in shell scripts, you should probably be using sh anyway.




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

Search: