From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5624 invoked by alias); 3 Aug 2010 13:45:55 -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: 15236 Received: (qmail 10981 invoked from network); 3 Aug 2010 13:45:52 -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,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL,URIBL_BLACK autolearn=no version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at speedy.prohost.de does not designate permitted sender hosts) Date: Tue, 3 Aug 2010 15:35:25 +0200 Message-ID: To: zsh-users@zsh.org From: "Manuel Presnitz" Reply-To: "Manuel Presnitz" Subject: Re: Problem with "?" symbol X-Mailer: Calypso Webmail Version 0.32 Hi, > 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 (...) > 2. Quote the character automatically (...) I think there is also a third solution: Unset the option nomatch: $ zsh -f $ curl -vvv -k https://HOST.COM/page/page2/?virtual_serial=101032 zsh: no matches found: https://HOST.COM/page/page2/?virtual_serial=101032 $ unsetopt nomatch $ curl -vvv -k https://HOST.COM/page/page2/?virtual_serial=101032 * About to connect() to HOST.COM port 443 * Trying 208.73.210.28... The manual explains, what happens, when nomatch is set (which is the default for invokation as zsh): NOMATCH (+3) If a pattern for filename generation has no matches, print an error, instead of leaving it unchanged in the argument list. This also applies to file expansion of an initial `~' or `='. I like this option, it is very handy, also for things like that: $ nmap -sP 192.168.1.* Best regards, Manuel.