Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.bin/tset Pull up revision 1.9 (requested by kleink):



details:   https://anonhg.NetBSD.org/src/rev/76f79180383e
branches:  netbsd-1-4
changeset: 469931:76f79180383e
user:      he <he%NetBSD.org@localhost>
date:      Mon Dec 20 15:59:39 1999 +0000

description:
Pull up revision 1.9 (requested by kleink):
  Report disabled control characters as <undef> (like stty(1) does);
  fixes PR#9019.

diffstat:

 usr.bin/tset/tset.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r a8b6286890fd -r 76f79180383e usr.bin/tset/tset.c
--- a/usr.bin/tset/tset.c       Mon Dec 20 15:56:49 1999 +0000
+++ b/usr.bin/tset/tset.c       Mon Dec 20 15:59:39 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tset.c,v 1.8 1998/12/19 23:19:45 christos Exp $        */
+/*     $NetBSD: tset.c,v 1.8.2.1 1999/12/20 15:59:39 he Exp $  */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)tset.c     8.1 (Berkeley) 6/9/93";
 #endif
-__RCSID("$NetBSD: tset.c,v 1.8 1998/12/19 23:19:45 christos Exp $");
+__RCSID("$NetBSD: tset.c,v 1.8.2.1 1999/12/20 15:59:39 he Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -272,7 +272,9 @@
        else if (new < 040) {
                new ^= 0100;
                (void)fprintf(stderr, "control-%c (^%c).\n", new, new);
-       } else
+       } else if (new == _POSIX_VDISABLE)
+               (void)fprintf(stderr, "<undef>.\n");
+       else
                (void)fprintf(stderr, "%c.\n", new);
 }
 



Home | Main Index | Thread Index | Old Index