zsh-users
 help / color / mirror / code / Atom feed
From: "Manuel Presnitz" <mpy@gmx.net>
To: zsh-users@zsh.org
Subject: Re: Problem with "?" symbol
Date: Tue, 3 Aug 2010 15:35:25 +0200	[thread overview]
Message-ID: <aug3-8425220102@webmail.mpynet.de> (raw)

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) <C> <Z>
 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.



             reply	other threads:[~2010-08-03 13:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 13:35 Manuel Presnitz [this message]
2010-08-03 14:46 ` Dan Nelson
2010-08-03 21:05   ` Vincent Lefevre
2010-08-08 12:49   ` Nadav Har'El
2010-08-08 13:50     ` Benjamin R. Haskell
  -- strict thread matches above, loose matches on Subject: below --
2010-08-03 12:26 Volodya Khomchak
2010-08-03 12:35 ` Alexey I. Froloff
2010-08-03 13:06   ` René 'Necoro' Neumann
2010-08-03 15:17     ` Bart Schaefer
2010-08-03 12:39 ` Jérémie Roquet
2010-08-03 12:50   ` Vincent Lefevre
2010-08-03 12:46 ` Vincent Lefevre
2010-08-08 12:10 ` Bryan Hunt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aug3-8425220102@webmail.mpynet.de \
    --to=mpy@gmx.net \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).