If filename is a '-' then read from stdin to stdout
This commit is contained in:
parent
14d7ea460f
commit
7499918f30
@ -1246,7 +1246,7 @@ int gzip_main(int argc, char **argv)
|
||||
show_usage();
|
||||
}
|
||||
}
|
||||
if (optind == argc) {
|
||||
if ((optind == argc) || (strcmp(argv[optind], "-") == 0)) {
|
||||
fromstdin = 1;
|
||||
tostdout = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user