From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24077 invoked by alias); 3 Jul 2014 16:11:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32834 Received: (qmail 17115 invoked from network); 3 Jul 2014 16:11:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7fac6d000006cfe-41-53b5809c5a3a Date: Thu, 03 Jul 2014 17:11:07 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [Pkg-zsh-devel] Bug#679824: zsh: Buggy perl completion with -e [origin: vincent@vinc17.net] Message-id: <20140703171107.23afc5db@pwslap01u.europe.root.pri> In-reply-to: <9EFC1491-C1F9-407F-B0A7-BFCC51414D51@kba.biglobe.ne.jp> References: <20140628142003.GI5355@sym.noone.org> <461B8CB3-4C88-42D4-987F-3A9C3846EB03@kba.biglobe.ne.jp> <9EFC1491-C1F9-407F-B0A7-BFCC51414D51@kba.biglobe.ne.jp> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphluLIzCtJLcpLzFFi42I5/e/4Nd05DVuDDX4fVbc42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGfu7exkLmjkrdvxYxt7A2M/excjBISFgInH8mFMXIyeQKSZx 4d56ti5GLg4hgaWMEot2LmSFcJYzSZz/fZsJpIpFQFXi1M3HLCA2m4ChxNRNsxlBbBEBcYmz a8+DxYUFsiQ2dMxjA7F5BewlDpy8wApicwq4Shw90ssMYgsJPGKU+LrBGsTmF9CXuPr3ExPE FfYSM6+cYYToFZT4Mfke2ExmAS2JzduaWCFseYnNa94yT2AUmIWkbBaSsllIyhYwMq9iFE0t TS4oTkrPNdQrTswtLs1L10vOz93ECAnBLzsYFx+zOsQowMGoxMPbuGJDsBBrYllxZe4hRgkO ZiUR3rTCrcFCvCmJlVWpRfnxRaU5qcWHGJk4OKUaGDl/Cndeyjy8dtaxaa8lRVmE6+1n+B1s K1708fpnx/+8YkHmR5ofO99lXbmMOSNywun1PyLZ/K91L3jq1vFtO+s1pndT18q5OO9YJDjx RnrTwnPLbp13i+2edf7Sgj/fLyT/SL1U4iEyzTFDnC8tnX/Zu5dvP6gHvJ1+Ikd9QivTbalf gQqe68yVWIozEg21mIuKEwG5/0nyHwIAAA== On Fri, 04 Jul 2014 00:59:13 +0900 "Jun T." wrote: > 2014/06/30 22:02, Jun T. wrote: > > python -c '...' > > ruby -e '...' > > > > these will complete a command name, not a file name. > > The following is a patch to fix this. > > In the case of ruby, the current _ruby contains > '(-)1:script file:_files' > This means all files (foo.rb, bar.py, junk.c, etc.) are > offered as Ruby scripts, but I didn't change this in the > patch. I have no experience with ruby and don't know > what most ruby users expect here. .rb is fairly standard but obviously not required; I don't think there's any good reason for Ruby to be different from other scripting languages here, though nobody's ever complained. Probably the best compromise in general would be to have .pl, .py, .rb and other files completed using separate tags, so you have the easily configurable option of picking out the native suffix or all files. I've a vague memory you can already tell _files to do clever things like that in certain contexts but I'm too lazy to check. pws