GNU bug report logs - #18506
stty dsusp undef fails.

Previous Next

Package: coreutils;

Reported by: Edward Huff <ejhuff <at> gmail.com>

Date: Fri, 19 Sep 2014 04:39:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Edward Huff <ejhuff <at> gmail.com>
Cc: 18506 <at> debbugs.gnu.org
Subject: bug#18506: stty dsusp undef fails.
Date: Fri, 19 Sep 2014 16:19:10 +0100
[Message part 1 (text/plain, inline)]
On 09/19/2014 10:05 AM, Pádraig Brady wrote:
> tag 18506 notabug
> close 18506
> stop
> 
> On 09/19/2014 03:09 AM, Edward Huff wrote:
>> $ stty dsusp undef
>> stty: invalid argument ‘dsusp’
>> Try 'stty --help' for more information.
>> $ stty --help | grep dsusp
>>  * dsusp CHAR    CHAR will send a terminal stop signal once input flushed
>> $ stty --version
>> stty (GNU coreutils) 8.21
> 
> The dsusp entry is tagged with "*" to indicate it's not a POSIX setting,
> and just above the --help says: "The underlying system defines which settings are available."
> So it's just the case that this setting is not available on your system,
> which is the case for Linux for example. Ideally the listed options would
> be dynamic and not list this as an option for you, but this would complicate
> the man page generation.

However man pages are generated at build time now,
so we might consider eliding non applicable items?

The caveat to that is that man pages generated and
then copied on the web somewhere would be less general.

I'm leaning towards that actually as currently we
don't distinguish "invalid argument" from "not supported" errors.

Proposed patch attached.

thanks,
Pádraig.
[stty-elide-unsupported.diff (text/x-patch, attachment)]

This bug report was last modified 10 years and 252 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.