file descriptors, redirection and other animals....

2009-03-10 Thread simonm
Hi all, Here's a quick one... The following works as expected: # exec 9<>test.file ; jot 50 >&9 ; tail -5 <&9 9>&- 46 47 48 49 50 The next one does not: # exec 9<>test.file ; jot 50 >&9 ; head -5 <&9 9>&- # The question is: Why? bash --version GNU bash, version 3.2.17(1)-release (i386-appl

Re: file descriptors, redirection and other animals....

2009-03-10 Thread simonm
On Mar 9, 7:10 pm, Stephane CHAZELAS wrote: > 2009-03-9, 05:03(-07), simonm: > > Not sure what you're trying to achieve. Have you got some example? > > Note that comp.unix.shell would be a better place to ask kind of > question. OK. > -- > Stéphane Thanks for