Add GNU compatibile gzip -d
authorEric Andersen <andersen@codepoet.org>
Wed, 13 Dec 2000 17:55:11 +0000 (17:55 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 13 Dec 2000 17:55:11 +0000 (17:55 -0000)
archival/gzip.c
gzip.c

index 49c429b3af84a7da4eecd908cdcec125a59b840f..ca0c177d47152e7aa861eee264d5ad4ed5c5703b 100644 (file)
@@ -1808,6 +1808,8 @@ int gzip_main(int argc, char **argv)
                        case '1': case '2': case '3': case '4': case '5':
                        case '6': case '7': case '8': case '9':
                                break;
+                       case 'd':
+                               exit(gunzip_main(argc, argv));
                        default:
                                usage(gzip_usage);
                        }
diff --git a/gzip.c b/gzip.c
index 49c429b3af84a7da4eecd908cdcec125a59b840f..ca0c177d47152e7aa861eee264d5ad4ed5c5703b 100644 (file)
--- a/gzip.c
+++ b/gzip.c
@@ -1808,6 +1808,8 @@ int gzip_main(int argc, char **argv)
                        case '1': case '2': case '3': case '4': case '5':
                        case '6': case '7': case '8': case '9':
                                break;
+                       case 'd':
+                               exit(gunzip_main(argc, argv));
                        default:
                                usage(gzip_usage);
                        }