From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21969 invoked by alias); 30 Jun 2014 13:02:45 -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: 32824 Received: (qmail 25122 invoked from network); 30 Jun 2014 13:02:40 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [Pkg-zsh-devel] Bug#679824: zsh: Buggy perl completion with -e [origin: vincent@vinc17.net] From: "Jun T." In-Reply-To: Date: Mon, 30 Jun 2014 22:02:37 +0900 Content-Transfer-Encoding: 7bit Message-Id: <461B8CB3-4C88-42D4-987F-3A9C3846EB03@kba.biglobe.ne.jp> References: <20140628142003.GI5355@sym.noone.org> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.2) X-Biglobe-Spnum: 56939 2014/06/30 19:58, Jun T. wrote: > I first thought that just replacing the line 19 of _perl > '( -E)*-e+[run one line of program]:one line of program' \ > by > '(1 -E)*-e+[run one line of program]:one line of program' \ > would be enough, but it didn't work. For example > > perl -e 's/foo/bar/' > > will offer all the command names (external commands etc.), instead of > the file names in the current directory. I have found that _python and _ruby have this problem: python -c '...' ruby -e '...' these will complete a command name, not a file name. _python has '(1 -)-c+[program passed in as string ...]:python command:' '*::script argument: _normal' while _ruby has "(1)*-e+[one line of script ...]:one line of script:" '*::script argument: _normal' Maybe we need to fix them after figuring out how to fix _perl.