when on a console or not, and make default behavior compatible
with GNU gzip...
-Erik
int fromstdin = 0;
int force = 0;
- if (argc == 1)
- usage(gzip_usage);
-
/* Parse any options */
while (--argc > 0 && **(++argv) == '-') {
if (*((*argv) + 1) == '\0') {
}
}
}
- if (argc <= 0)
+ if (argc <= 0 ) {
fromstdin = 1;
+ tostdout = 1;
+ }
if (isatty(fileno(stdin)) && fromstdin==1 && force==0)
fatalError( "data not read from terminal. Use -f to force it.\n");
int fromstdin = 0;
int force = 0;
- if (argc == 1)
- usage(gzip_usage);
-
/* Parse any options */
while (--argc > 0 && **(++argv) == '-') {
if (*((*argv) + 1) == '\0') {
}
}
}
- if (argc <= 0)
+ if (argc <= 0 ) {
fromstdin = 1;
+ tostdout = 1;
+ }
if (isatty(fileno(stdin)) && fromstdin==1 && force==0)
fatalError( "data not read from terminal. Use -f to force it.\n");