Date: Sun, 8 Sep 2002 17:47:04 -0700 From: "David O'Brien" <obrien@freebsd.org> To: Vasil Dimov <vd@etrade.bg> Cc: freebsd-stable@freebsd.org, freebsd-ports@freebsd.org Subject: Re: bash directory completion annoyingly changes from 2.05a to 2.05b Message-ID: <20020909004704.GA4973@dragon.nuxi.com> In-Reply-To: <20020908143027.GA16572@polejan.bl-52.studgrad.net> References: <20020908143027.GA16572@polejan.bl-52.studgrad.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I don't like it either. But AFAIK, the change is not due to any FreeBSD-specific patch in the FreeBSD port. Therefore it is purely a Bash issue and the bash author should be contacted. Or if you track this down, I'd accept a patch for the FreeBSD bash port to return the traditional behavior. -- David On Sun, Sep 08, 2002 at 05:30:27PM +0300, Vasil Dimov wrote: > after upgrading from 2.05a to 2.05b i noticed that directory completions > do not work as before and probably the new way is "wrong". > > being in /usr/local/etc and desiring to run ./rc.d/030.apache.sh it is > usual to type: > /usr/local/etc# ./r<TAB>03<TAB> > but after the first <TAB> now (in 2.05b) i get > "./rc.d " instead of "./rc.d/" and i have to backspace and manually type > the slash: > /usr/local/etc# ./r<TAB><BACKSPACE>/03<TAB> > and i find that annoying, isn't it? > can it be changed with `set SOMETHING' or like? > i did not find anything about it. > ----- > From: "Patrick O'Reilly" <bsd@perimeter.co.za>: > > Experimenting, I found this: > /usr/local/etc# rc.<TAB> ==> rc.d/ > /usr/local/etc# sh r<TAB> ==> sh rc.d/ > /usr/local/etc# . r<TAB> ==> . rc.d/ > > So, it seems to me that when bash auto-completes the first token on the > line, it will omit the trailing / on directory names, but when it > autocompletes an argument (2nd or later token on the line) it includes the > trailing /. > > These are my observations - I don't know whether this should be considered > RIGHT or WRONG? Admittedly - I cannot think of any reason why one would > want to use a directory name as the first token on a line, so the > behaviour does seems strange. > ----- > From: Phil Kernick <Phil@Kernick.org> > > It's already been reported to the bash developers, and there is a patch. > > Refer to: http://www.geocrawler.com/mail/msg.php3?msg_id=9514404&list=342 > > What this probably means is that 2.05b should not be included in the ports > collection that makes it into 4.7-RELEASE. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020909004704.GA4973>