update from Rodney Ruddock
[unix-history] / usr / src / contrib / ed / bang.c
index 59ca630..48cbb91 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)bang.c     5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)bang.c     5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -82,7 +82,7 @@ bang(inputt, errnum)
        }
 
        system(l_shellcmd);
        }
 
        system(l_shellcmd);
-       if (explain_flag != 0)  /* for the -s option */
+       if (explain_flag > 0)   /* for the -s option */
                printf("!\n");
        l_cnt_last_pos = l_cnt;
        *errnum = 0;
                printf("!\n");
        l_cnt_last_pos = l_cnt;
        *errnum = 0;