Browse Source

wc can emit unpredictable amount of whitespace

Denis Vlasenko 17 years ago
parent
commit
dccb1a5343
1 changed files with 2 additions and 1 deletions
  1. 2 1
      testsuite/wc/wc-counts-all

+ 2 - 1
testsuite/wc/wc-counts-all

@@ -1 +1,2 @@
-test "`echo i\'m a little teapot | busybox wc`" = '      1       4      20'
+# 1 line, 4 words, 20 chars.
+test "`echo i\'m a little teapot | busybox wc | sed 's/  */ /g' | sed 's/^ //'`" = '1 4 20'