delete "disable", it wasn't documented
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 23 May 1991 01:55:35 +0000 (17:55 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 23 May 1991 01:55:35 +0000 (17:55 -0800)
add "<undef>" so users can use the output to set the value

SCCS-vsn: bin/stty/stty.c 5.24

usr/src/bin/stty/stty.c

index 573a6fe..800741e 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)stty.c     5.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)stty.c     5.24 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -246,7 +246,7 @@ tty:                        tmp = TTYDISC;
 ccfound:               if (!*++argv)
                                err("option requires an argument -- %s",
                                    cp->name);
 ccfound:               if (!*++argv)
                                err("option requires an argument -- %s",
                                    cp->name);
-                       if (CHK("undef") || CHK("disable"))
+                       if (CHK("undef") || CHK("<undef>"))
                                t.c_cc[cp->sub] = _POSIX_VDISABLE;
                        else if (**argv == '^')
                                t.c_cc[cp->sub] = 
                                t.c_cc[cp->sub] = _POSIX_VDISABLE;
                        else if (**argv == '^')
                                t.c_cc[cp->sub] =