[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `cat` vs. read
From: |
Ralf Wildenhues |
Subject: |
Re: `cat` vs. read |
Date: |
Mon, 27 Oct 2008 22:30:10 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Eric,
* Eric Blake wrote on Mon, Oct 27, 2008 at 05:44:03PM CET:
> $ foo=; printf 'abc' > file; read foo < file; echo $? $foo
> 1 abc
>
> Does anyone know of a shell where this patch would fail (either because the
> shell spits out an error message, or because foo is unpopulated due to the
> nonzero status)?
Solaris 2.10 dtksh will print
1 ab
Tru64/OSF1 dtksh will print
0
These shells are not reasonable targets of current configure scripts,
but I wonder whether it's worth the hassle of potential problems with
shells on less-used systems.
Cheers,
Ralf
- `cat` vs. read, Eric Blake, 2008/10/27
- Re: `cat` vs. read,
Ralf Wildenhues <=