Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Bug] Use of [] in python package names
- X-seq: zsh-workers 44121
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>, Varshith Sreeramdass <varshiths@xxxxxxxxxxxxxx>
- Subject: Re: [Bug] Use of [] in python package names
- Date: Wed, 13 Mar 2019 09:37:03 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190313093705euoutp01ad4ce175c1e1c832f0db7912b1a77b55~LexS-ygaO1249012490euoutp01I
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1552469825; bh=sL9bzAuE4Yn0ccoXcD5UJx/jFp8IZZ1RM+G0ek2qXV8=; h=Subject:From:To:Date:In-Reply-To:References:From; b=OMasPJUGsnLXG5Osd9pRoPv0sOS/ANmHj7EupDHzGTNKLQkd/WUXRqr2r5yDiiMx1 fhTqxJNGpnRbjMEUErePD3TqpUTfBU74KYrCxRvlwi1SQEC0YIoCfWQaGCVMIvCt3+ 51huDrzsh5Wc/EqoVTN4trMbwRVnT6h6zWs+oehQ=
- In-reply-to: <9049d434-6c89-e5a0-cb27-e0a56f42eabb@cse.iitb.ac.in>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190313061733epcas4p1e506fc7c5d41b7e22f6fdd44b8771da7@epcas4p1.samsung.com> <9049d434-6c89-e5a0-cb27-e0a56f42eabb@cse.iitb.ac.in>
On Wed, 2019-03-13 at 11:46 +0530, Varshith Sreeramdass wrote:
> I use zsh 5.7.1.
>
> To install spacy with GPU support, the command involved is
>
> /$ pip install -U spacy[cuda100]/
>
> While it works perfectly on bash, zsh throws the following error.
>
> / zsh: no matches found: spacy[cuda100]/
>
> I guess this is an issue with how [] are dealt.
Yes, the square brackets are part of file pattern matching ("globbing",
in the shell jargon) syntax, so need quoting. Zsh just happens to be
more consistent about this than bash in the default mode (either it's a
pattern that needs to match something or it isn't and doesn't). It's
not a bug.
If you want the bash behaviour --- where it simply ignores the pattern
if it doesn't match --- you can put
setopt nonomatch
in you ~/.zshrc.
I don't know what the oh-my-zsh attitude to this option is, but I'm
pretty sure there's no implication there of complete bash compatibility
out of the box.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author