RedditPP Mascot

RedditPP

r/unix • … • u/wfaulk

After 32 years I have learned that you can put command arguments *after* file redirection

That is, in addition to:

printf '%s %s %s\n' this is fine > /tmp/tif.txt

you can also write:

printf '%s %s %s\n' > /tmp/wtf.txt wtf is this

and:

printf '%s %s %s\n' also > /tmp/atg.txt this garbage

This works in, at least, `bash`, `zsh`, `dash`, `ksh`, and `tcsh`. Has this always been the case?

I feel like I'm living in an alternate reality.

I can't express how much my mind is blown in addition to how little effect this has on anything I'll ever do or have ever done.

— 0