From owner-freebsd-bugs Sun Feb 2 10:20:15 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A7AE37B401 for ; Sun, 2 Feb 2003 10:20:11 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4217F43F3F for ; Sun, 2 Feb 2003 10:20:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h12IK8NS040008 for ; Sun, 2 Feb 2003 10:20:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h12IK83F040007; Sun, 2 Feb 2003 10:20:08 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DC1A37B401 for ; Sun, 2 Feb 2003 10:13:56 -0800 (PST) Received: from list.precipice.net (list.precipice.net [12.38.161.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD6D743F3F for ; Sun, 2 Feb 2003 10:13:55 -0800 (PST) (envelope-from root@list.precipice.net) Received: from list.precipice.net (localhost.codefab.com [127.0.0.1]) by list.precipice.net (8.12.6/8.12.6) with ESMTP id h12IDsT5083898 for ; Sun, 2 Feb 2003 13:13:54 -0500 (EST) (envelope-from root@list.precipice.net) Received: (from root@localhost) by list.precipice.net (8.12.6/8.12.6/Submit) id h12IDs4c083897; Sun, 2 Feb 2003 13:13:54 -0500 (EST) (envelope-from root) Message-Id: <200302021813.h12IDs4c083897@list.precipice.net> Date: Sun, 2 Feb 2003 13:13:54 -0500 (EST) From: Charlie Root Reply-To: Chuck Swiger To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/47815: stty -all should work. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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