mkfifo and tee within a function

2006-11-28 Thread Nathan Coulter
Hi, Within a function, I'd like to print some input to the terminal and at the same time store it in a fifo fostore some input in a fifo, but am getting mixed results. In this example, I thought "hello" would be output twice: $>cmd_print () { mkfifo zout ; (tee zout &); cat zout ; rm zout; }

Re: FIGNORE behaviour with 'CVS', version 3.1.17(1)-release (i486-pc-linux-gnu)

2006-11-28 Thread Chet Ramey
> Machine Type: i486-pc-linux-gnu > > Bash Version: 3.1 > Patch Level: 17 > Release Status: release > > Description: > When I set FIGNORE to 'CVS' it doesn't work as I believe it's meant > to. Pressing tab in a directory containing files still lists 'CVS' in the > completion list. However

Re: mkfifo and tee within a function

2006-11-28 Thread Paul Jarc
Nathan Coulter <[EMAIL PROTECTED]> wrote: > My real goal is to feed data to a function and then source it: > > $> cmd_print () { mkfifo zout ; (cat - > zout ) & ; source zout ; rm zout; } > $> cmd_print < $> date > $> EOF > $> As Andreas said, this will be problematic using a fifo. You could do

Re: mkfifo and tee within a function

2006-11-28 Thread Andreas Schwab
Nathan Coulter <[EMAIL PROTECTED]> writes: > Could anyone please provide a few pointers on how to accomplish this, and > perhaps explain the results from the above examples? A process writing to a pipe that has no reader will receive EPIPE/SIGPIPE and die thereof by default. So it all depends o

Re: mkfifo and tee within a function

2006-11-28 Thread Nathan Coulter
> From: Andreas Schwab <[SNIP]> > Subject: Re: mkfifo and tee within a function > Sent: 2006-11-28 15:09 > > Nathan Coulter <[SNIP]> writes: > > > Could anyone please provide a few pointers on how to accomplish this, and > perhaps explain the results from the above examples? > > A proc

mkfifo and tee within a function

2006-11-28 Thread Nathan Coulter
Hi, Within a function, I'd like to print some input to the terminal and at the same time store it in a fifo fostore some input in a fifo, but am getting mixed results. In this example, I thought "hello" would be output twice: $>cmd_print () { mkfifo zout ; (tee zout &); cat zout ; rm zout; }

Re: mkfifo and tee within a function

2006-11-28 Thread Poor Yorick
> From: Andreas Schwab <[EMAIL PROTECTED]> > Subject: Re: mkfifo and tee within a function > Sent: 2006-11-28 15:09 > > Nathan Coulter <[EMAIL PROTECTED]> writes: > > > Could anyone please provide a few pointers on how to accomplish this, and > perhaps explain the results from the above e

Re: mkfifo and tee within a function

2006-11-28 Thread Poor Yorick
> From: Andreas Schwab <[SNIP]> > Subject: Re: mkfifo and tee within a function > Sent: 2006-11-28 15:09 > > Nathan Coulter <[SNIP]> writes: > > > Could anyone please provide a few pointers on how to accomplish this, and > perhaps explain the results from the above examples? > > A proc

intl.tests failure

2006-11-28 Thread Greg Schafer
Hi, Sorry for not noticing this earlier but bash-3.2 bash has introduced a minor regression in my build environment (i686-pc-linux-gnu): warning: some of these tests will fail if you do not have UTF-8 warning: locales installed on your system. warning: please ignore any differences consisting on