From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_NONE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RDNS_DYNAMIC autolearn=no autolearn_force=no version=4.0.0 Received: from pd3mo2so.prod.shaw.ca (h24-71-223-10.cg.shawcable.net [24.71.223.10]) by chiba.3jane.net (Postfix) with ESMTP id D6D691ABB for ; Fri, 14 Dec 2001 12:33:42 -0600 (CST) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GOC00402JKJV3@l-daemon> for gentoo-dev@gentoo.org; Fri, 14 Dec 2001 11:33:55 -0700 (MST) Received: from pn2ml7so (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GOC00C1HJKKMY@l-daemon> for gentoo-dev@gentoo.org; Fri, 14 Dec 2001 11:33:56 -0700 (MST) Received: from shaw.ca ([24.68.91.28]) by l-daemon (iPlanet Messaging Server 5.0 Patch 2 (built Dec 14 2000)) with ESMTP id <0GOC00KPUJKKVP@l-daemon> for gentoo-dev@gentoo.org; Fri, 14 Dec 2001 11:33:56 -0700 (MST) Date: Fri, 14 Dec 2001 10:37:39 -0800 From: Zach Forrest Subject: Re: [gentoo-dev] updated emerge bash completion + question To: gentoo-dev@gentoo.org Message-id: <3C1A46F3.4020706@shaw.ca> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011214 References: <1008246896.1016.10.camel@willow.theleaf.office> <3C1919E5.4010701@shaw.ca> <1008324439.25078.0.camel@gentoo.theleaf.office> Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Developer discussion list List-Unsubscribe: , List-Archive: X-Archives-Salt: df9565ea-7911-411e-b233-1ba4ad1bf414 X-Archives-Hash: 61a715954ac8b3bde3b0649f43b23a54 I think you may be right. Geert Bevin wrote: > Well this works, but it doesn't use the bash normal file completion > command which imho is not implemented correctly. I don't think that > --usepkg should limit itself to the binary packages directory, the > completion that follows should be a standard bash file completion. If > you see how file completion on other commands has been implemented, then > you'll see that they suffer from the same problem (eg. chown chmod ....) > I think that the compgen implementation of -f is flawed, it doesn't > react any different than -d. I'll try to contact the bash author(s). > > On Thu, 2001-12-13 at 22:13, Zach Forrest wrote: > >>This seems to work (see attachment). >> >>[DISCLAIMER: I make no claims that this is pretty.] >> >>Geert, >> >>I think the problem with filename completion when '--usepkg' is >>specified has to do with the suffix and glob flags when setting $setsma. >>I made a few other changes and was having the same problem (i.e. after >>the dirname was completed, it appended a "/" and added a space; >>interestingly, though, was that when I backspaced, it then completed on >>filenames properly). To get it working, I removed the '-S' flag and >>changed the glob pattern to "*/" (only when '--usepkg' is specified, of >>course). >> >>Maybe one of us should mail this addition to the bash_completion >>maintainer so it can be included in the main package. (He might also be >>able to clean it up a bit. If you'd like to send it in, feel free to >>point the finger at me for the hacks. ;-) ) >> >>Zach >>