Andreas Schwab <[EMAIL PROTECTED]> wrote:

> Jim Meyering <[EMAIL PROTECTED]> writes:
>
>> diff --git a/tests/df/total b/tests/df/total
>> index be4bc19..5398deb 100755
>> --- a/tests/df/total
>> +++ b/tests/df/total
>> @@ -29,12 +29,12 @@ fail=0
>>  umask 22
>>
>>  df > tmp || fail=1
>> -grep ^total tmp && fail=1
>> +grep '^total' tmp && fail=1
>
> This will fail if you happen to have an nfs mount from a host named
> total.

Good point.
We can fix it and make the regexp tighter at the same time:

  $EGREP '^total( +(-?[0-9]+|-)){3} +-?[0-9]+%$'


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to