0>&1

J.A. Neitzel jan.listbox at belvento.org
Thu Dec 7 20:13:00 PST 2000


On Thursday 07 December 2000 17:08, jerry gave us this to ponder:
> My original message seemed really unclear when I read it ( after I had
> sent it ) so I will try again.
>
> 0>&1 tells bash to duplicate stdout's file descriptor and use it for
> stdins's file descriptor.
>
> Now stty ocrnl will cause output newlines (0x0a) to be converted to
> 0x0d0a (cr lf). It does this by updateing the termios structure for
> your stdout with the ocrnl flag.
>
> I do not know what the reason is for ensuring that only the stdout
> termios structure is updated.

Hey, thanks for the explanation. Me thinks it makes sense... Now, there 
is just the "why?"??? Hmmm...
-- 
Tar for now,
J.A. Neitzel
"Monkeys everywhere! Where did the bananas go? Hmmm, I once heard
	that monkeys like bananas..."

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list