From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14155 invoked by alias); 3 Aug 2010 12:46:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15230 Received: (qmail 24048 invoked from network); 3 Aug 2010 12:46:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,URIBL_BLACK autolearn=no version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Tue, 3 Aug 2010 14:46:41 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Problem with "?" symbol Message-ID: <20100803124641.GB7217@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.20-6088-vl-r38367 (2010-07-31) Hi, On 2010-08-03 15:26:30 +0300, Volodya Khomchak wrote: > I faced with next issue in zsh. I'm new with this and don't have any > idea why this occurs. > So the problem is next: > > [kolombo:~]> curl -vvv -k https://HOST.COM/page/page2/?virtual_serial=101032 > zsh: no matches found: > https://esx16-bsd05.qa.sbr.ironport.com/atlas/ipcs/?virtual_serial=101032 > > This command fails on "?" symbol, do you have any idea why this occurs ? The ? is a special character for the shell (which cannot know whether the argument is a filename or not). There are 2 solutions: 1. Quote the character manually, e.g. cmd foo\?bar or cmd "foo?bar" 2. Quote the character automatically: autoload -Uz url-quote-magic zle -N self-insert url-quote-magic in your ".zshrc". Note: solution (2) is only a heuristic, which works well in practice, but may need more configuration in specific cases. > Also I know that this could be resolved by this: > alias curl="noglob curl" Not necessarily a good solution, as curl also works with filename arguments. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)