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

Russ Allbery rra@stanford.edu
Fri, 04 Oct 2013 10:52:43 -0700


Andrew Deason <adeason@sinenomine.net> writes:
> 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

Oh, I see.  It reads the file and sets the variable, but then exits with a
non-zero status.  So adding || true will fix this.  I will do that for the
next version of the package.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>