2 ms·
Instead of “|| true”, I prefer “|| :” – it’s shorter, and : is always a built-in, even in bare-bones shells where “true” is an external command. Since “|| :” i
by teddyh 11y ago
Instead of “|| true”, I prefer “|| :” – it’s shorter, and : is always a built-in, even in bare-bones shells where “true” is an external command.
Since “|| :” is always written at the end of lines, it should be short and visually unobtrusive.
- NegativeLatency 11y ago':' isn't valid as a command in the fish shell (unless you make an executable named ':' and put it in your path) user@host ~> : fish: Unknown command ':' edit: format
- teddyh 11y agoThe fish shell? Does it claim POSIX /bin/sh compatibility? http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_16 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3...