Turn off some debug noise.
authorEric Andersen <andersen@codepoet.org>
Mon, 21 Aug 2000 22:34:23 +0000 (22:34 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 21 Aug 2000 22:34:23 +0000 (22:34 -0000)
 -Erik

lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index 2cec66bffd9dc938b7a81382924a2f46e971c84a..50e4368db2672925442631ec55e0690362b33e54 100644 (file)
--- a/lash.c
+++ b/lash.c
@@ -1434,12 +1434,12 @@ int shell_main(int argc_l, char **argv_l)
         *    standard output is a terminal
         *    Refer to Posix.2, the description of the `sh' utility. */
        if (interactive==TRUE || ( argv[optind]==NULL && input==stdin && isatty(fileno(stdin)) && isatty(fileno(stdout)))) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                /* Looks like they want an interactive shell */
                fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT);
                fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
        } else if (local_pending_command==NULL) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                input = fopen(argv[optind], "r");
                if (!input) {
                        fatalError("%s: %s\n", argv[optind], strerror(errno));
diff --git a/sh.c b/sh.c
index 2cec66bffd9dc938b7a81382924a2f46e971c84a..50e4368db2672925442631ec55e0690362b33e54 100644 (file)
--- a/sh.c
+++ b/sh.c
@@ -1434,12 +1434,12 @@ int shell_main(int argc_l, char **argv_l)
         *    standard output is a terminal
         *    Refer to Posix.2, the description of the `sh' utility. */
        if (interactive==TRUE || ( argv[optind]==NULL && input==stdin && isatty(fileno(stdin)) && isatty(fileno(stdout)))) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                /* Looks like they want an interactive shell */
                fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT);
                fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
        } else if (local_pending_command==NULL) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                input = fopen(argv[optind], "r");
                if (!input) {
                        fatalError("%s: %s\n", argv[optind], strerror(errno));
index 2cec66bffd9dc938b7a81382924a2f46e971c84a..50e4368db2672925442631ec55e0690362b33e54 100644 (file)
@@ -1434,12 +1434,12 @@ int shell_main(int argc_l, char **argv_l)
         *    standard output is a terminal
         *    Refer to Posix.2, the description of the `sh' utility. */
        if (interactive==TRUE || ( argv[optind]==NULL && input==stdin && isatty(fileno(stdin)) && isatty(fileno(stdout)))) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                /* Looks like they want an interactive shell */
                fprintf(stdout, "\n\nBusyBox v%s (%s) Built-in shell\n", BB_VER, BB_BT);
                fprintf(stdout, "Enter 'help' for a list of built-in commands.\n\n");
        } else if (local_pending_command==NULL) {
-               fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
+               //fprintf(stdout, "optind=%d  argv[optind]='%s'\n", optind, argv[optind]);
                input = fopen(argv[optind], "r");
                if (!input) {
                        fatalError("%s: %s\n", argv[optind], strerror(errno));