zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: [PATCH] Allow '=' aliases to be used with -L
Date: Fri, 23 Mar 2018 17:02:16 -0700	[thread overview]
Message-ID: <180323170216.ZM10317@torch.brasslantern.com> (raw)
In-Reply-To: <20180323172953.GA25905@chaz.gmail.com>

On Mar 23,  5:29pm, Stephane Chazelas wrote:
}
} FWIW, another corner case:
} 
} $ aliases[(e)]=whatever

That's actually not relevant at all to what follows, except that it
creates the string for "eval".

} Actually, I didn't quite expect that error message, I would have thought
} 
} echo ''=foo
} 
} would be the same as
} 
} echo '=foo'

The problem here is that zsh lacks a representation for "quoted nothing".
The empty string gets removed entirely from the word rather than being
left behind to let the later parse know that something was there that
disappeared.

I can't think of an easy way to fix this without some significant lexing
changes, but perhaps someone else has an idea.


      reply	other threads:[~2018-03-24  0:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-22  1:19 Joey Pabalinas
2018-03-22  1:37 ` Bart Schaefer
2018-03-22  2:58   ` Joey Pabalinas
2018-03-22  3:08     ` Bart Schaefer
2018-03-22  3:12       ` Joey Pabalinas
2018-03-23  6:32     ` Daniel Shahaf
2018-03-23  7:39       ` Joey Pabalinas
2018-03-23 10:09 ` Nikolay Aleksandrovich Pavlov (ZyX)
2018-03-23 10:36   ` Joey Pabalinas
2018-03-23 17:29 ` Stephane Chazelas
2018-03-24  0:02   ` Bart Schaefer [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=180323170216.ZM10317@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).