News for hackers. Stuff that matters.
Re:You can't afford to keep your SSH keys on disk by a3w on Monday November 23, 2026 @10:47AM (#50613802)
cat ~/.ssh/id_rsa | pbcopy

feels wrong. Unnecessary uses of cat.

`pbcopy < ~/.ssh/id_rsa`

Re:You can't afford to keep your SSH keys on disk by zulux on Monday November 23, 2026 @10:54AM (#50613924)
I stopped fighting this war because the Cat version sort of follows the Subject-Verb-Object order in English, depending on how you think about the subject.
Re:You can't afford to keep your SSH keys on disk by adrian_b on Monday November 23, 2026 @02:08PM (#50617342)
The redirected input file can be moved before the command name, which improves the syntax for pipes.
Re:You can't afford to keep your SSH keys on disk by rpigab on Monday November 23, 2026 @10:56AM (#50613957)
This feels better, to have data flow from left to right, just like regular pipelines:

`<~/.ssh/id_rsa pbcopy`

Re:You can't afford to keep your SSH keys on disk by InsidiousWombat on Monday November 23, 2026 @01:29PM (#50616641)

   cat /a/thing
ok it looks right, let's continue

   cat /a/thing | thing doer
HN: "noooo you're doing it wrooong, use my obscure syntaaax that reads baaadlyy"
Re:You can't afford to keep your SSH keys on disk by matvore on Monday November 23, 2026 @03:32PM (#50618818)
"reads badly" is subjective. How many processes your pipeline starts up is not.