coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] df: port the new df test to POSIX sed, larger file systems


From: Pádraig Brady
Subject: Re: [PATCH] df: port the new df test to POSIX sed, larger file systems
Date: Thu, 22 Nov 2012 11:52:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 11/22/2012 11:33 AM, Bernhard Voelker wrote:
On 11/22/2012 11:18 AM, Pádraig Brady wrote:
I also noticed that `sed -i` was used,
so I fixed that and made the simplificiation as suggested above, with...

Thanks.

The patch doesn't apply well - there is an excess blank at the beginning
of each unchanged line. Strange.

Other than that, it looks good.

What about a further simplification?

Have a nice day,
Berny


diff --git a/tests/df/df-output.sh b/tests/df/df-output.sh
index 0aee5f2..2bee4b0 100644
--- a/tests/df/df-output.sh
+++ b/tests/df/df-output.sh
@@ -124,12 +124,7 @@ sed -n -e '3 {
  compare exp out2 || fail=1

  # Ensure that --output is mentioned in the usage.
-cat <<\EOF > exp || framework_failure_
---output
-EOF
-
  df --help > out || fail=1
-grep ' --output' out | sed 's/^.*\(--output\).*$/\1/;q' > out2
-compare exp out2 || fail=1
+grep ' --output' out >/dev/null || fail=1

Yes I'll squash that it.

thanks,
Pádraig.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]