[OpenAFS] Re: Update squeeze openafs-fileserver to squeeze-backports

Andrew Deason adeason@sinenomine.net
Fri, 4 Oct 2013 12:44:06 -0500


On Fri, 04 Oct 2013 09:30:04 -0700
Russ Allbery <rra@stanford.edu> wrote:

> Well, the comment indicates that I knew about this problem at some
> point, but I see no sign of actually doing what the comment says it
> should be doing.  On the other hand, I can't figure out why that read
> would fail when there's no trailing newline (it doesn't for me with
> either bash or dash).

Looks like it does to me (bash):

$ printf "foo\n" > foo.file ; echo $?
0
$ read foo < foo.file ; echo $?
0
$ printf "foo" > foo.file ; echo $?
0
$ read foo < foo.file ; echo $?
1

-- 
Andrew Deason
adeason@sinenomine.net