From owner-freebsd-stable Sun Sep 8 7:30:36 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 344FE37B400; Sun, 8 Sep 2002 07:30:30 -0700 (PDT) Received: from blok52.atlantis.bg (blok52.atlantis.bg [193.108.24.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6795B43E4A; Sun, 8 Sep 2002 07:30:29 -0700 (PDT) (envelope-from cfdisk@blok52.atlantis.bg) Received: by blok52.atlantis.bg (Postfix, from userid 1000) id 4F10FAA0E; Sun, 8 Sep 2002 17:30:27 +0300 (EEST) Date: Sun, 8 Sep 2002 17:30:27 +0300 From: Vasil Dimov To: freebsd-stable@freebsd.org Cc: freebsd-ports@freebsd.org, obrien@freebsd.org Subject: Re: bash directory completion annoyingly changes from 2.05a to 2.05b Message-ID: <20020908143027.GA16572@polejan.bl-52.studgrad.net> Reply-To: vd@etrade.bg Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-OS: FreeBSD 4.7-PRERELEASE User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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# ./r03 but after the first 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/03 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" : Experimenting, I found this: /usr/local/etc# rc. ==> rc.d/ /usr/local/etc# sh r ==> sh rc.d/ /usr/local/etc# . r ==> . 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 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