X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=xzk2KLXYJrC4Zcn1ayTvxJQXPUn2yy 1Hx00fv9xKfZBtMduf0LEOXnKCaKHl22bL6w86cqL3hBsHmEEU4NHN4QZ+nNI0eW KRpEtTPCl+3Ta18e8Ya9VO6o/8J7gnOIzhBUlnJ8n68ZDq8B+0T8D9mV28oMCTs+ JnuuLOaqRkyo0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=UXY6rNCM11sXm3jja/4vNuCcvDQ=; b=cg9Y hB7A0aAUOUUvItKJnBDbMBjYbKWrqDWGQKXJ3r+kcrs4BjTy2OI4FmCzLhTI2BLu K5zTyD7CYI/fx5bkGQV6vfMzD10Mw0l6lwI1EeoP+VO/iYpl1mCBk5xDZXObxcsj lD79S8cH/mR3ld1Gcvl8Z8ZW8lPDVhHmUwmbD9U= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_FSL_HELO_BARE_IP_2,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: perl -d causes completion to fail Date: Wed, 15 Oct 2014 15:08:42 -0700 Lines: 38 Message-ID: References: <20141015184735 DOT GE9828 AT dinwoodie DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-IsSubscribed: yes On 10/15/2014 2:30 PM, Andrew DeFaria wrote: > On 10/15/2014 11:47 AM, Adam Dinwoodie wrote: >> On Tue, Oct 14, 2014 at 04:22:20PM -0700, Andrew DeFaria wrote: >>> Now I did some Bash completion stuff before so I'm familiar but >>> where would I find which completion thing causes this to work but >>> only if -d was not specified? >>> >>> Specify some other Perl option (i.e. -v) and it WORKS! >>> >>> To recap: perl -d mysc does NOT complete to perl -d myscript.pl >>> but perl -v mysc does! That's just odd! >> >> This is all provided by the bash-completion package. You should be able >> to download the source code using setup-*.exe as usual, or the specific >> script you're after is /etc/bash_completion.d/perl. >> >> The upstream release of bash-completion is v2.1; the official Cygwin >> version seems to be based on v1.3, so it could be that this is resolved >> in future releases. >> > > Hmmm... seems my bash-completion and a few other things are old. Time to > update.... (should have checked this first - sorry). Adefaria-lt:ls /etc/bash_completion.d/perl ls: cannot access /etc/bash_completion.d/perl: No such file or directory Adefaria-lt:ls /usr/share/bash-completion/completions/perl /usr/share/bash-completion/completions/perl Adefaria-lt: I think you mean /usr/share/bash-completion/completions/perl... I think the problem is that it's parsing the next token after -d and -dt looking for :debugger and never things that maybe there's no debugger name (see perldoc perldebug). -- Andrew DeFaria http://defaria.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple