OSDN Git Service

* src/lharc.c (main): never set `get_filename_from_stdin` to true.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 26 May 2002 21:43:30 +0000 (21:43 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sun, 26 May 2002 21:43:30 +0000 (21:43 +0000)
`echo foo | lha x foo.lzh' does not work like original LHa.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@136 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/lharc.c

index 1e426a6..de43d3f 100644 (file)
@@ -384,14 +384,15 @@ work:
                if (!isatty(1) && cmd == CMD_ADD)
                        quiet = TRUE;
        }
+#if 0 /* Comment out; IMHO, this feature is useless. by Koji Arai */
        else {
                if (ac == 3 && !isatty(0)) { /* 1999.7.18 */
-#if !__MINGW32__ /* FIXME: Bug(?) on MinGW, isatty() return 0 on
-                    Cygwin console.  Cygwin 1.3.10(0.51/3/2) on Win2000 */
-                       get_filename_from_stdin = TRUE;
-#endif
+            /* Bug(?) on MinGW, isatty() return 0 on
+               Cygwin console.  Cygwin 1.3.10(0.51/3/2) on Win2000 */
+            get_filename_from_stdin = TRUE;
                }
        }
+#endif
 
        /* target file name */
        if (get_filename_from_stdin) {