WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

https://lobste.rs/s/omperu/good_cat_cat_hates_pipes#c_gggsaz

POSIX shells (Bash, Dash, etc.) respect both prefix and postfix redirections. By that I mean:

$ > foo.tmp echo BAR
$ < foo.tmp read line ; echo $line
BAR

It's effectively the same as if I had written:

$ echo BAR > foo.tmp
$ read line < foo.tmp ; echo $line
BAR
https://lobste.rs/s/omperu/good_cat_cat_hates_pipes#c_gggsaz POSIX shells (Bash, Dash, etc.) respect both prefix and postfix redirections. By that I mean: $ > foo.tmp echo BAR $ < foo.tmp read line ; echo $line BAR It's effectively the same as if I had written: $ echo BAR > foo.tmp $ read line < foo.tmp ; echo $line BAR

(post is archived)

[–] 1 pt

Indians are always doing things in reverse, that's how they think, backwards. It's satanic.