Andrew Deason <[email protected]> writes: > Russ Allbery <[email protected]> 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 ([email protected]) <http://www.eyrie.org/~eagle/> _______________________________________________ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info
