summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-01 23:39:41 +0100
committerJim Meyering <meyering@redhat.com>2007-11-01 23:40:21 +0100
commit3e3f8f0161645a7ca3730f1e8307ab7011b8c6f8 (patch)
treea7388f417c9372fe152f50be52fe3d3d04304b57
parentc70fc8d87b52e932013e992fb2700fedd53d2170 (diff)
downloadcoreutils-3e3f8f0161645a7ca3730f1e8307ab7011b8c6f8.tar.xz
tests/misc/printf-surprise: Correct sed transform.
Reported by Bob Proulx.
-rw-r--r--ChangeLog3
-rwxr-xr-xtests/misc/printf-surprise2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 01e322a56..052e13c16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-11-01 Jim Meyering <meyering@redhat.com>
+ * tests/misc/printf-surprise: Correct sed transform.
+ Reported by Bob Proulx.
+
Add example inspired by "make dist" running gzip and lzma in sequence.
* doc/coreutils.texi (tee invocation): Show how to run tar just
once, compressing the tee'd output streams in parallel.
diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index 4e125864a..fe5458920 100755
--- a/tests/misc/printf-surprise
+++ b/tests/misc/printf-surprise
@@ -54,7 +54,7 @@ fail=0
# Map this longer, and rarer, diagnostic to the common one.
# printf: cannot perform formatted output: Cannot allocate memory" \
-sed 's/cannot perform/write error/' err > k && mv k err
+sed 's/cannot perform .*/write error/' err > k && mv k err
case $(cat err) in
"$prog: write error") diagnostic=y ;;
'') diagnostic=n ;;