Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mail Fix the broken "!" escape and "shell" (&-prompt...



details:   https://anonhg.NetBSD.org/src/rev/cf393dbcc56c
branches:  trunk
changeset: 554526:cf393dbcc56c
user:      ross <ross%NetBSD.org@localhost>
date:      Wed Oct 29 05:11:26 2003 +0000

description:
Fix the broken "!" escape and "shell" (&-prompt) commands.  These problems
were related to closed PR bin/21896, and to the 2003-3-29 code import.

diffstat:

 usr.bin/mail/cmd3.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2c14c971f0b3 -r cf393dbcc56c usr.bin/mail/cmd3.c
--- a/usr.bin/mail/cmd3.c       Wed Oct 29 05:03:41 2003 +0000
+++ b/usr.bin/mail/cmd3.c       Wed Oct 29 05:11:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmd3.c,v 1.21 2003/08/07 11:14:36 agc Exp $    */
+/*     $NetBSD: cmd3.c,v 1.22 2003/10/29 05:11:26 ross Exp $   */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)cmd3.c     8.2 (Berkeley) 4/20/95";
 #else
-__RCSID("$NetBSD: cmd3.c,v 1.21 2003/08/07 11:14:36 agc Exp $");
+__RCSID("$NetBSD: cmd3.c,v 1.22 2003/10/29 05:11:26 ross Exp $");
 #endif
 #endif /* not lint */
 
@@ -65,7 +65,7 @@
                return 1;
        if ((shellcmd = value("SHELL")) == NULL)
                shellcmd = _PATH_CSHELL;
-       (void)run_command(shellcmd, 0, -1, -1, "-c", cmd, NULL);
+       (void)run_command(shellcmd, 0, 0, 1, "-c", cmd, NULL);
        (void)signal(SIGINT, sigint);
        printf("!\n");
        return 0;
@@ -83,7 +83,7 @@
 
        if ((shellcmd = value("SHELL")) == NULL)
                shellcmd = _PATH_CSHELL;
-       (void)run_command(shellcmd, 0, -1, -1, NULL);
+       (void)run_command(shellcmd, 0, 0, 1, NULL);
        (void)signal(SIGINT, sigint);
        putchar('\n');
        return 0;



Home | Main Index | Thread Index | Old Index