zsh-users
 help / color / mirror / code / Atom feed
* Re: Problem with "?" symbol
@ 2010-08-03 13:35 Manuel Presnitz
  2010-08-03 14:46 ` Dan Nelson
  0 siblings, 1 reply; 13+ messages in thread
From: Manuel Presnitz @ 2010-08-03 13:35 UTC (permalink / raw)
  To: zsh-users

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.



^ permalink raw reply	[flat|nested] 13+ messages in thread
* Problem with "?" symbol
@ 2010-08-03 12:26 Volodya Khomchak
  2010-08-03 12:35 ` Alexey I. Froloff
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Volodya Khomchak @ 2010-08-03 12:26 UTC (permalink / raw)
  To: zsh-users

Hi Folks,

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 ?

Also I know that this could be resolved by this:
alias curl="noglob curl"


Cheers,
Volodya


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-08-08 13:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-03 13:35 Problem with "?" symbol Manuel Presnitz
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

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