Date: Sun, 2 Feb 2003 13:13:54 -0500 (EST) From: Charlie Root <root@list.precipice.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/47815: stty -all should work. Message-ID: <200302021813.h12IDs4c083897@list.precipice.net>
next in thread | raw e-mail | index | archive | help
>Number: 47815
>Category: bin
>Synopsis: stty -all should work.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 02 10:20:07 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Chuck Swiger
>Release: FreeBSD 4.7-RELEASE-p3 i386
>Organization:
CodeFab
>Environment:
System: FreeBSD list.precipice.net 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Wed Jan 22 12:15:14 EST 2003 root@wl.codefab.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
stty should take the -l flag as a no-op, so "stty -all" works.
>How-To-Repeat:
6-sec# stty -all
stty: illegal option -- -all
usage: stty [-a|-e|-g] [-f file] [options]
>Fix:
--- stty.1.orig Sun Feb 2 12:52:54 2003
+++ stty.1 Sun Feb 2 12:54:56 2003
@@ -43,7 +43,7 @@
.Nd set the options for a terminal device interface
.Sh SYNOPSIS
.Nm
-.Op Fl a | Fl e | Fl g
+.Op Fl a | Fl e | Fl g | Fl l
.Op Fl f Ar file
.Op operands
.Sh DESCRIPTION
@@ -84,6 +84,8 @@
.It Fl g
Display all the current settings for the terminal to standard output
in a form that may be used as an argument to a subsequent invocation of
+.It Fl l
+No-op for backwards compatibility ("stty -all").
.Nm
to restore the current terminal state as per
.St -p1003.2 .
--- stty.c.orig Sun Feb 2 12:50:52 2003
+++ stty.c Sun Feb 2 12:51:50 2003
@@ -75,8 +75,8 @@
opterr = 0;
while (optind < argc &&
- strspn(argv[optind], "-aefg") == strlen(argv[optind]) &&
- (ch = getopt(argc, argv, "aef:g")) != -1)
+ strspn(argv[optind], "-aefgl") == strlen(argv[optind]) &&
+ (ch = getopt(argc, argv, "aef:gl")) != -1)
switch(ch) {
case 'a': /* undocumented: POSIX compatibility */
fmt = POSIX;
@@ -91,6 +91,8 @@
case 'g':
fmt = GFLAG;
break;
+ case 'l':
+ break;
case '?':
default:
goto args;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302021813.h12IDs4c083897>
