From: DervishD <raul@pleyades.net>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Don't understand why 'EQUALS' option works this way
Date: Wed, 30 Jun 2004 21:22:00 +0200 [thread overview]
Message-ID: <20040630192200.GB489@DervishD> (raw)
In-Reply-To: <Pine.LNX.4.60.0406300833410.5600@toltec.zanshin.com>
Hi Bart :)
* Bart Schaefer <schaefer@brasslantern.com> dixit:
> > Why 'print a=1' prints 'a=1' but 'print a==1' prints '1: not
> > found'?
> > All this happens, of course, only when EQUALS is 'on'.
> I think you'll find that this also happens only when MAGIC_EQUAL_SUBST
> is on.
I still don't understand. The first form, if MAGIC_EQUAL_SUBST is
on, is eligible for filename expansion (the filename is '1'), but in
the second form the filename would be '=1', that's all the
difference. Oh, I see, the '1' could be a filename, and if it cannot
be expanded, nothing occurs, but the second form expands differently,
since it is the '=filename' construction.
BTW, if EQUALS is off and MAGIC_EQUAL_SUBST is on, this doesn't
happen, because the =filename construct is never tried, I wasn't
aware of this.
Thanks for your help :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
prev parent reply other threads:[~2004-06-30 19:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 10:18 DervishD
2004-06-30 15:39 ` Bart Schaefer
2004-06-30 19:22 ` DervishD [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040630192200.GB489@DervishD \
--to=raul@pleyades.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).