2 ms·
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 fi
by flohofwoe 11y ago
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.
- oranjax 11y agofish simply replaced `backticks` with (parentheses). give it a go.
- ajsalminen 11y agoBackticks aren't recommended even in POSIX anymore, $() is the newer, preferred alternative.
- 0942v8653 11y agoHuh? Does sh have "$()"? I thought we had to use backticks for POSIX-only environments.
- cmrx64 11y agoYes, POSIX sh has $(): 2.6.3 Command Substitution (http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu...)