Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Ignore certain glob characters?
- X-seq: zsh-users 13821
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Ignore certain glob characters?
- Date: Tue, 10 Feb 2009 18:46:54 +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=RFgA7Y17/8ox1qQRES71GoirXrw+ya8jEqPF7GAhLnk=; b=hUft/2JPfqYLIuTuiUUC7Knvj9CcNviDb3Vk6STI9KG0YPWY1x+kM1KEbek+brpEk4 uVLEXr7K5sFEaVXPQ5GypfVKmYU0xSbmOyFmZotLxZLT/9nTktraDl72jfXNjvkzTCBp PO0YO8cmQcOcQvc+7DSvrkYfy07gLqDfPSFZ0=
- 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=r1i/DFzgW/9s8pidZ+50PJQKQOMPO8qnuEbIh48yZ6xbBgLZ6ihlREeI3SZtt+jv7T MUn1O/MUnoyMad20jpLq2wvcfZ7ke7WCfepBzU3jOxqgizjSZ+57IPoibGdS0ItYy7Co R+7xnXtICxps/b0d+PXYfV+HUoxs5zYat/QzA=
- In-reply-to: <237967ef0902100854o19f39abldf9a4d3c868354ae@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <alpine.LNX.2.00.0902101005080.3891@averatec> <200902101608.n1AG8MHL014553@xxxxxxxxxxxxxx> <237967ef0902100854o19f39abldf9a4d3c868354ae@xxxxxxxxxxxxxx>
2009/2/10 Mikael Magnusson <mikachu@xxxxxxxxx>:
> 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)
Functions/Zle/url-quote-magic is the one I was thinking about.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author