From 095a8b7080428f750bdb743da9c82779700e840a Mon Sep 17 00:00:00 2001 From: Kazuya Takeshima Date: Tue, 15 Jan 2013 15:10:45 +0900 Subject: [PATCH] Fix to quote _files -g option argument --- src/_gem | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_gem b/src/_gem index 3f8f7c2..f3d4bf8 100644 --- a/src/_gem +++ b/src/_gem @@ -223,7 +223,7 @@ _gem_help() { _gem_install() { _arguments \ - "*:URI: _alternative 'files:file:_files -g *.gem' 'urls:URL:__all_gems'" \ + "*:URI: _alternative 'files:file:_files -g \"*.gem\"' 'urls:URL:__all_gems'" \ "(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \ "(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \ "(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \ @@ -305,7 +305,7 @@ _gem_pristine() { _gem_push() { _arguments \ - "*:URI: _alternative 'files:file:_files -g *.gem'" \ + "*:URI: _alternative 'files:file:_files -g \"*.gem\"'" \ "(-k --key)"{-k,--key}"[Use the given API key from ~/.gem/credentials]" \ "--host[Push to another gemcutter-compatible host]" \ $gem_general_flags && ret=0