>   $ cat < abcfile xyzfile
>   This is the contents of xyzfile
>   $
> 
> If anyone has an answer to this, tell us!

Try tracing it.

> We can use a very important trick to find out: set -x
>              ---- --------- -----

What shells does that work with?  UX, I know, but BASH?

> $ set -x
> $
> 
> $ cat < abcfile xyzfile
> + cat xyzfile
> + 0< abcfile
> xyz
> $

"0<"?

> $ set -x
> $ echo < xyzfile
> + echo
> + 0< xyzfile
> 
> $

"0<"?

> $ echo x > /dev/null
> + echo x
> + 1> /dev/null
> $

"1>"?

I've seen 2> before for redirecting STDERR.  So, these streams have
numbers...  I know that 2 is for STDERR, and I can see (from the above
example) that 1 is for STDOUT.  0?  Nowhere?  The bit bucket?

Reply via email to