summaryrefslogtreecommitdiff
path: root/testsuite/bunzip2
diff options
context:
space:
mode:
authorMatt Kraai2002-03-27 17:31:01 +0000
committerMatt Kraai2002-03-27 17:31:01 +0000
commit9cdb0601eb53ffdb3fb6b94bb1336adbc7d59e5c (patch)
treea8c2712e1b703f28ba0ca4ad662227ddea2bf413 /testsuite/bunzip2
parentfa15f702d2e4c7d377d6cf89e950227405622f1b (diff)
downloadbusybox-9cdb0601eb53ffdb3fb6b94bb1336adbc7d59e5c.zip
busybox-9cdb0601eb53ffdb3fb6b94bb1336adbc7d59e5c.tar.gz
* archival/bunzip2.c: Include <unistd.h>.
(bunzip2_main): Read data from standard input if FILE argument is `-' or omitted. * include/usage.h (bunzip2_trivial_usage, bunzip2_full_usage): Rewrite. * testsuite/bunzip2/bunzip2-reads-from-standard-input: New.
Diffstat (limited to 'testsuite/bunzip2')
-rw-r--r--testsuite/bunzip2/bunzip2-reads-from-standard-input2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/bunzip2/bunzip2-reads-from-standard-input b/testsuite/bunzip2/bunzip2-reads-from-standard-input
new file mode 100644
index 0000000..7bc8421
--- /dev/null
+++ b/testsuite/bunzip2/bunzip2-reads-from-standard-input
@@ -0,0 +1,2 @@
+echo foo | bzip2 -c | busybox bunzip2 -c > output
+echo foo | cmp - output