Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ignore certain glob characters?
- X-seq: zsh-users 13820
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Ignore certain glob characters?
- Date: Tue, 10 Feb 2009 17:54:52 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=t0XZWSJPsEmARK6wB8nSblWA/hWtOKtBrUw1NkMsbb8=; b=g4Ap1kDrCYa+a7iXC5+VfkB7mLiaymiWmAQG2z5A4PRm+ZtmN0dVYoHb+hvPdZUuCN gmB284vyNKEcTgRB+PKlmMJpT6qnLDicqoy8e3VA4ACVSxwEkcDunMQXgj4Oadfo3QnL Kp+/k3Cluzj6oldiOtngnwX19utRf4LsD0XHs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=nqfxMTF9cvYN/0UyJa3RydWIQsZoGQqFLShzKvQKeb9dVP9rNab+w1taFdPi2N6Mza 22qo8BJma0AlFDt9j7XOWOD7kG2FJCRcIwJ7Wd9PLGqyshC4QEDHSUrIAxHdmyG3RtsQ uATZceZgLUwzw3cAFHFLZ7qvG0bMAqfmM5hbQ=
- In-reply-to: <200902101608.n1AG8MHL014553@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <alpine.LNX.2.00.0902101005080.3891@averatec> <200902101608.n1AG8MHL014553@xxxxxxxxxxxxxx>
2009/2/10 Peter Stephenson <pws@xxxxxxx>:
> "Benjamin R. Haskell" wrote:
>> I'd like to be able to specify that I want no_nomatch behavior for certain
>> meta-characters. With Windows commands, a common flag is '/?' (usually the
>> semantic equivalent of '--help'), and I'm getting sick of typing '/\?':
>>
>> $ runas /?
>> zsh: no matches found: /?
>
> Assuming you never want to use /? as a glob expression,
>
> alias -g '/?=/\?'
>
> will fix that one. This may well be a better answer than what you're
> asking for, since otherwise commands like the one you show become
> dependent on what's in the root directory.
>
>> The other place this comes up is when pasting URLs into the terminal (both
>> Windows/non):
>>
>> $ wget http://example.com/probably?param=eters
>> zsh: no matches found: http://example.com/probably?param=eters
>
> I would suspect you don't need globbing at all with wget, if you use it
> for standard purposes, in which case the usual workaround,
>
> alias wget='noglob wget'
>
> whould be OK. I can't offhand think of a reason you'd need to wget a
> globbing expression, but that's without diving into the manual.
>
> I can't think of any answers that give you more general control.
What about that magic-url-quote-insert or whatever it was called? (not
home so cant check manpage right now)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author