You are not logged in.

#1 2008-10-05 17:36:51

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

I think I just found a bug in bash accidentally...!

Does this occur for you?

1. Trigger the "Display all XXX possibilities? (y or n)" message by hitting k<tab> if you have KDE installed or doing something similar - eg, if you don't have the disable empty glob option enabled, hit tab twice with nothing entered.
2. Resize the terminal window by any arbitrary amount. One line or column works.
3. Observe that... the message disappears, yet the acceptance of (and only of) Y/y or N/n remains (or ^C of course).

Architecture, bash version, etc are also probably going to be a good idea, especially if this post makes its way into a message to the bash mailing list.

-dav7

Last edited by dav7 (2008-10-05 17:37:31)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#2 2008-10-05 17:45:49

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: I think I just found a bug in bash accidentally...!

Are you sure it couldn't be a terminal emulator bug ?
Have you tried different ones ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2008-10-05 17:46:26

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 1,960
Website

Re: I think I just found a bug in bash accidentally...!

Funny, I don't see my reply at all (even before the resizing).  the "Display all XXX possibilities? (y or n)"  is still there though.  Could be your terminal too (I'm using Terminal (Xfce terminal) 0.2.8 )


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2008-10-05 17:52:32

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: I think I just found a bug in bash accidentally...!

I'm not talking about your reply - that shouldn't be there. I'm saying the actual "Display..." message *itself* >>disappears<<!

It's probably a readline issue, since to have the message disappear require escape sequences to be sent to the terminal, so it's probably an internal state being called erroneously.

I just checked this bug (and it occured) with:
* urxvt/c (the original terminal I found this issue with)
* xterm
* konsole
* lxterminal

I also tried it with a screen session, which requires I fire two resize events of any type - horizontal and/or vertical - for the bug to present itself. This is exactly the same with dtach, and an ssh session to myself.

-dav7

Last edited by dav7 (2008-10-05 17:54:25)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#5 2008-10-05 18:31:29

ArchArael
Member
From: Switzerland
Registered: 2005-06-14
Posts: 485

Re: I think I just found a bug in bash accidentally...!

Happens in Sakura terminal also.

arael[~]$sakura -v
sakura version is 2.3.0
arael[~]$
arael[~]$bash --version
bash --version
GNU bash, version 3.2.39(1)-release (i686-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.
history -a
arael[~]$

Last edited by ArchArael (2008-10-05 18:36:28)

Offline

#6 2008-10-05 18:55:50

ichbinesderelch
Member
Registered: 2008-01-17
Posts: 203

Re: I think I just found a bug in bash accidentally...!

happens in kde4 console as well.

Last edited by ichbinesderelch (2008-10-05 18:56:08)

Offline

#7 2008-10-05 20:26:24

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,801
Website

Re: I think I just found a bug in bash accidentally...!

+ xfce4's "terminal"

Offline

#8 2008-10-05 20:39:37

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: I think I just found a bug in bash accidentally...!

+ lxterminal big_smile

nice one!

Offline

#9 2008-10-06 02:54:25

TjPhysicist
Member
From: Waterloo, Canada
Registered: 2008-04-12
Posts: 125
Website

Re: I think I just found a bug in bash accidentally...!

gnome-terminal = yes


-Tj
Now reborn as Tjh_ (to keep it similar to my username in other places)

Offline

#10 2008-10-06 04:05:04

freakcode
Member
From: São Paulo - Brazil
Registered: 2007-11-03
Posts: 410
Website

Re: I think I just found a bug in bash accidentally...!

Yep, looks definetly as a bug. And an annoying one.

Offline

#11 2008-10-06 04:16:59

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: I think I just found a bug in bash accidentally...!

Oh wow...

Time to find the bash mailing list then (I haven't really done the whole subscribe-to-mailing-list thing, this will be fun)

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#12 2008-10-06 04:24:06

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: I think I just found a bug in bash accidentally...!

Or... I just subscribed to it with Google Groups big_smile

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#13 2008-10-06 04:44:54

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: I think I just found a bug in bash accidentally...!

Here's the thread in Google Groups:

http://groups.google.com/group/gnu.bash … 58eae25dd4

Let's see how this turns out, this is the first time I've reported a bug (mailinglist/hardcore style lol) big_smile

-dav7

Last edited by dav7 (2008-10-06 04:45:23)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#14 2008-10-06 16:25:55

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: I think I just found a bug in bash accidentally...!

might be related to problem #4 in this thread: http://bbs.archlinux.org/viewtopic.php?id=53516.

Offline

#15 2008-10-06 16:39:12

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: I think I just found a bug in bash accidentally...!

Of course, I'm guessing no one resizes a terminal before answering that, so that's why it went unnoticed.
So I'm curious, why did you do that ? big_smile


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#16 2008-10-06 19:51:15

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: I think I just found a bug in bash accidentally...!

peets: Hmm... possibly. Depends on whether the OP in that thread did the same thing as me.

moljac: I assume you ask why I tabbed to get the "Display..." message, then resized? Basic preemptation, I wanted to see bash's response in a bigger window.

Google group: ...agh! Respond! Be active... or something!

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#17 2008-10-17 16:18:44

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: I think I just found a bug in bash accidentally...!

peets wrote:

might be related to problem #4 in this thread: http://bbs.archlinux.org/viewtopic.php?id=53516.

Hmm... since the new kernel upgrade my terminal resizing problems have been fixed, but not this. I gave a wrong hint!

Offline

Board footer

Powered by FluxBB