Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problem with "?" symbol
- X-seq: zsh-users 15230
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problem with "?" symbol
- Date: Tue, 3 Aug 2010 14:46:41 +0200
- In-reply-to: <AANLkTimLO4gf=Gh9y9Z20OnFQ7sLoJQX-yeA9+peq_vx@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTimLO4gf=Gh9y9Z20OnFQ7sLoJQX-yeA9+peq_vx@xxxxxxxxxxxxxx>
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 <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author