GNU bug report logs - #20127
bug in stty

Previous Next

Package: coreutils;

Reported by: Morris Keesan <mkeesan <at> post.harvard.edu>

Date: Tue, 17 Mar 2015 19:40: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


Message #8 received at 20127 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Morris Keesan <mkeesan <at> post.harvard.edu>, 20127 <at> debbugs.gnu.org
Subject: Re: bug#20127: bug in stty
Date: Wed, 18 Mar 2015 10:17:34 +0000
tag 20127 notabug
close 20127
stop

On 17/03/15 19:33, Morris Keesan wrote:
> stty --version:
> stty (GNU coreutils) 8.13
> 
> uname -a:
> Linux ice4 3.2.0-75-generic #110-Ubuntu SMP Tue Dec 16 19:11:55 UTC 
> 2014 x86_64 x86_64 x86_64 GNU/Linux
> ==================================================================
> bug:
>        stty erase ''
> sets erase to <undef>.  This may be intentional, but seems like a bug, since
> this behavior is undocumented, and the stty man page says,
> "special values ^- or undef used to disable special characters."
> 
> I haven't bothered testing, but I assume that an empty argument gets treated
> as undef for all special characters.

Yes, that's the same for all special characters.
Also Solaris and FreeBSD have the same behavior.
However I'm not sure it should be documented,
as the NUL character is being taken literally in this case,
and it happens to match the _POSIX_VDISABLE character.
This may change in future, so I would stick to the
documented interfaces.

thanks,
Pádraig.




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

Previous Next


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