Re: problems with 'read'ing from a pipe

2008-03-15 Thread Andreas Schwab
"John Smith" <[EMAIL PROTECTED]> writes: > But I guess that you would consider that a bug in ksh ? POSIX allows both behaviours. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B

Re: problems with 'read'ing from a pipe

2008-03-15 Thread Jan Schampera
John Smith wrote: > Ok, so maybe I should have just 'read the manual' > ;) > > But it still confuses me somewhat, since AT&T's kornshell behaves > differently.. I just downloaded the latest available version for Linux > from the url mentioned below, and it does work in AT&T's ksh as I > expected..

Re: problems with 'read'ing from a pipe

2008-03-15 Thread John Smith
Ok, so maybe I should have just 'read the manual' ;) But it still confuses me somewhat, since AT&T's kornshell behaves differently.. I just downloaded the latest available version for Linux from the url mentioned below, and it does work in AT&T's ksh as I expected... http://www.research.att.com/

Re: problems with 'read'ing from a pipe

2008-03-14 Thread Paul Jarc
"John Smith" <[EMAIL PROTECTED]> wrote: > echo foo | read VAR > echo $VAR See entry E4 in the bash FAQ: http://tiswww.case.edu/php/chet/bash/FAQ paul

problems with 'read'ing from a pipe

2008-03-14 Thread John Smith
Hi, I was running into some unexpected behavior with bash and reading from a pipeline, and am starting to wonder if im running into a bug or whether im just doing something wrong. For example, if I type the following : echo foo | read VAR echo $VAR I would expect the the variable named VAR to