delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/14/19:22:53

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: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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.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 AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT 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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019