From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 445 invoked by alias); 1 Dec 2009 16:06:38 -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: 27445 Received: (qmail 3497 invoked from network); 1 Dec 2009 16:06:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: none (ns2.melb.primenet.com.au: domain at altlinux.org does not designate permitted sender hosts) From: "Alexey I. Froloff" To: Zsh list Cc: "Alexey I. Froloff" Subject: [PATCH] _ruby: do not limit scripts to *.rb glob Date: Tue, 1 Dec 2009 19:06:16 +0300 Message-Id: <1259683576-7957-1-git-send-email-raorn@altlinux.org> X-Mailer: git-send-email 1.6.5.3 Ruby scripts doesn't have to have .rb extension, I may be simple executable script with /usr/bin/ruby shebang. Running these scripts with ruby command may be the only way to specify additional arguments to interpreter itself (like -I or -r). Signed-off-by: Alexey I. Froloff --- Completion/Unix/Command/_ruby | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Completion/Unix/Command/_ruby b/Completion/Unix/Command/_ruby index aef186c..03f4e60 100644 --- a/Completion/Unix/Command/_ruby +++ b/Completion/Unix/Command/_ruby @@ -8,7 +8,7 @@ typeset -A opt_args local -a args opts args=( - '(-)1:script file:_files -g "*.rb(-.)"' + '(-)1:script file:_files' '*::script argument: _normal' ) -- 1.6.5.3