From owner-freebsd-stable Sun Sep 8 6:57:59 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 6F2E037B400 for ; Sun, 8 Sep 2002 06:57:56 -0700 (PDT) Received: from perimeter.co.za (obelix.perimeter.co.za [209.212.102.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ED0E43E6A for ; Sun, 8 Sep 2002 06:57:53 -0700 (PDT) (envelope-from bsd@perimeter.co.za) Received: from asterix (ndf-dial-196-30-124-186.mweb.co.za [196.30.124.186]) (AUTH: LOGIN bsd@perimeter.co.za) by perimeter.co.za with esmtp; Sun, 08 Sep 2002 15:57:49 +0200 Message-ID: <006001c2573f$d039cbc0$0200000a@perimeter.co.za> From: "Patrick O'Reilly" To: vd@etrade.bg, freebsd-stable@freebsd.org References: <20020908132932.GA22116@polejan.bl-52.studgrad.net> Subject: Re: bash directory completion annoyingly changes from 2.05a to 2.05b Date: Sun, 8 Sep 2002 15:57:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 From: "Vasil Dimov" > /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? Experimenting, I found this: /usr/local/etc# rc. ==> rc.d/ /usr/local/etc# sh r ==> sh rc.d/ /usr/local/etc# . r ==> . rc.d/ > can it be changed with `set SOMETHING' or like? > i did not find anything about it. 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. --- Regards, Patrick O'Reilly. ___ _ __ / _ )__ __ (_)_ __ ___ _/ /____ __ / __/ -_) _) / ~ ) -_), ,-/ -_) _) /_/ \__/_//_/_/~/_/\__/ \__/\__/_/ http://www.perimeter.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message