Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fish works great in everyday use, especially the 'smart completion'. I didn't encounter shell scripts that wouldn't work in fish, since they don't run though fish, but sh or bash. Naturally some bash things don't work on the command line (for instance backticks), for these I usually quickly jump into a bash session, run the bash expressions, and then go back to fish.


fish simply replaced `backticks` with (parentheses). give it a go.


Backticks aren't recommended even in POSIX anymore, $() is the newer, preferred alternative.


Huh? Does sh have "$()"? I thought we had to use backticks for POSIX-only environments.


Yes, POSIX sh has $(): 2.6.3 Command Substitution (http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu...)




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

Search: