Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Unexpected foo==bar errors
- X-seq: zsh-workers 37904
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Unexpected foo==bar errors
- Date: Sun, 7 Feb 2016 16:57:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eYrlAsDQUZmxAkYFR9H/itGBddo93eR+hYGk0lV0OUM=; b=W3PWuQcFB9juxHDKFlaE5v7gB/aWyrQfIVuIDIJ19qtcbgFUp6EY5/+hI7xlY0DLSM ovOE8OLnliiCX8yIOFjq8Tw8sFIvS75hfmkqealrZ3PCZxe5owZ4F9wEckc6deaSG1nh lT4+kq4P+d6CJ2AGjo4ttqMlioFeNHj/LuNLfPWkC92Xnsz/iuCYRYLhuRjh2L2YLFWD IMJTnslEaAVuPPYSKThy0Wn9DALo0I24SURxcmjssE0WUvPHM8vKdXJyCo7aZ9KUNIqC +3zVnWRETH+yL9MQ9lNd1OTnbAthqxwPGz2aHR5lz3WctKL/x/MHmzTaj7Y9JJ/WGI6X aqNg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
% foo==bar
zsh: bar not found
This happens even with globassign and magicequalsubst turned off.
A comparison,
% foo='*bar'
% baz=$~foo
% echo $baz
*bar
% foo='=bar'
% baz=$~foo
zsh: bar not found
And how I happened upon this:
% tar tf =(foo) <tab>
_tar:70: not found
I always thought of EQUALS expansion as a form of globbing; should it
be enabled in these contexts even though regular globbing isn't?
(
_tar:70 is
tf=${~words[3]}
)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author