From root@list.precipice.net  Sun Feb  2 10:13:56 2003
Return-Path: <root@list.precipice.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5DC1A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <root@list.precipice.net>
Reply-To: Chuck Swiger <cswiger@mac.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: stty -all should work.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47815
>Category:       bin
>Synopsis:       [patch] stty(1) -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:  Sun Apr  5 16:40:03 UTC 2009
>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:

From: Chuck Swiger <cswiger@mac.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/47815: stty -all should work.
Date: Sun, 02 Feb 2003 13:26:54 -0500

 Move the man page change down 3 lines.  Updated diff:
 
 --- stty.1.orig Sun Feb  2 12:52:54 2003
 +++ stty.1      Sun Feb  2 13:05:32 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
 @@ -87,6 +87,8 @@
   .Nm
   to restore the current terminal state as per
   .St -p1003.2 .
 +.It Fl l
 +No-op for backwards compatibility ("stty -all").
   .El
   .Pp
   The following arguments are available to set the terminal
 

From: Ruslan Ermilov <ru@freebsd.org>
To: Chuck Swiger <cswiger@mac.com>
Cc: bug-followup@freebsd.org
Subject: Re: bin/47815: stty -all should work.
Date: Mon, 3 Feb 2003 16:20:23 +0200

 On Sun, Feb 02, 2003 at 01:13:54PM -0500, Charlie Root wrote:
 > 
 > stty should take the -l flag as a no-op, so "stty -all" works.
 > 
 Compatibility with who/what?
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Sysadmin and DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age

From: Chuck Swiger <cswiger@mac.com>
To: Ruslan Ermilov <ru@FreeBSD.org>, bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/47815: stty -all should work.
Date: Mon, 03 Feb 2003 14:26:36 -0500

 Ruslan Ermilov wrote:
 > On Sun, Feb 02, 2003 at 01:13:54PM -0500, Charlie Root wrote:
 >>stty should take the -l flag as a no-op, so "stty -all" works.
 > 
 > Compatibility with who/what?
 
 Historical SysV and BSD/SysV hybrids, CMU's /usr/local version.  Or my 
 memory thereof.  :-)  Having "stty all" ~= "stty -all" ~= "stty -a" is 
 convenient, and it even works on the box I'm mailing you from:
 
 $ stty -all
 speed 38400 baud; rows 25; columns 80; line = 0;
 intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
 eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
 lnext = ^V; flush = ^O; min = 1; time = 0;
 -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
 -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon 
 -ixoff-iuclc -ixany -imaxbelopost -olcuc -ocrnl onlcr -onocr -onlret 
 -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0isig icanon iexten echo -echoe 
 -echok -echonl -noflsh -tostop -echoctl -echoke
 $ uname -a
 CYGWIN_NT-5.1 prime 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown 
 unknown Cygwin
 
 About 10% of the Google hits show that form, as well.
 
 -Chuck
 

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, cswiger@mac.com
Cc:  
Subject: Re: bin/47815: [patch] stty(1) -all should work.
Date: Sun, 5 Apr 2009 18:39:36 +0200

 Apart from the questionable use of this addition, it may also interfere
 with future stty operands starting with a '-'. For example, '-nl' is an
 operand. Adding both '-n' and '-l' options would break it.
 
 -- 
 Jilles Tjoelker
>Unformatted:
