X-Recipient: archive-cygwin@delorie.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:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=bVe
	ornqnj/BHysaxE2J7lYc4M+0svT1Xh3fa98OE1yyQKRHRYyWT1Ju1IUKu5P3lk4p
	Twnb0XDPY9/cZ6r2Bz9Zw5XOF9im1LEME5VuGfgWjQKIO2tuyC6CJa0yT1Jy2Y0D
	0cXTqOByDWNsBtm6vnY9FBdQZXLlpG1X7M12Qs3c=
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:mime-version
	:content-type:content-transfer-encoding; s=default; bh=m0DZonYqE
	MMsGa4YwV+LHPh+EoE=; b=gWxtu/r2YeD838SkWYIK3n8aqwwt0qDtIklPAvpSG
	bOLtJgTKJYCyAP4pypV4qi3wbK5gnThH1nEwPkCbQ9s5aovUBcPZJvTaYippan7v
	NKNWieBjYvfnquZm2kHjbRIUj2qZGCdL8fBmMxKoHO4StzTZfF9tzKEc47m9rJ7F
	ZA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 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@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: perl -d causes completion to fail
Date: Tue, 14 Oct 2014 16:22:20 -0700
Lines: 17
Message-ID: <m1kb7c$rko$1@ger.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2
X-IsSubscribed: yes

I'm a big fan of Perl and using Perl's debugger (i.e. perl -d <script>), 
however I noticed that Bash completion works if I say
perl <scr... then tab but fails if I say perl -d <scr... The <script> 
doesn't complete! (and no I don't mean the actual characters <script> 
rather the script filename).

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<tab> does NOT complete to perl -d myscript.pl but 
perl -v mysc<tab> does! That's just odd!
-- 
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

