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

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.




':' 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


The fish shell? Does it claim POSIX /bin/sh compatibility?

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: