On 12/26/2010 01:29 PM, Stephane CHAZELAS wrote: > Bash behavior is the same as every other shell, is as documented > and as specified by POSIX.
POSIX requires that the input to read be a text file. Since you aren't passing a text file, the behavior is undefined. POSIX does NOT require bash to return failure in this case, but neither does it require bash to return success. You should not rely on the behavior of read when the input does not end in a newline. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature