[Toybox] redirect vs pipe order.

Rob Landley rob at landley.net
Thu Sep 3 22:05:10 UTC 2026


Redrecting stdout wins over | but redirecting stderr loses to |&

   $ echo hello > /dev/null | cat
   $ cat nothing 2>/dev/null
   $ cat nothing 2>/dev/null |& cat
   cat: nothing: No such file or directory

Why?

Rob


More information about the Toybox mailing list