*/
#ifndef lint
-static char sccsid[] = "@(#)bang.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)bang.c 5.5 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
l_shellcmd[l_cnt] = '\0';
break;
} else
- if ((ss == '!') && (l_esc == 0))
+ if ((ss == '!') && (l_esc == 0)) {
l_cnt = l_cnt_last_pos;
+ printf("%s\n", l_shellcmd);
+ }
else
if ((ss == '%') && (l_esc == 0)) {
l_shellcmd[l_cnt] = '\0';