Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Fwd: Editing the history in the shell
- X-seq: zsh-workers 45927
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Fwd: Editing the history in the shell
- Date: Tue, 26 May 2020 20:32:29 -0700
- In-reply-to: <CAH+w=7bTCCC2XBr+_HCAPqXWuOV_YOrDv+36C6jJScKrxZjhLQ@mail.gmail.com>
- 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: <CAH+w=7ZFt7jshjv1FCEbmP_PgADvdKwymRutrzwJAvzNpsfOmA@mail.gmail.com> <20200523022807.08f3ba45@tarpaulin.shahaf.local2> <CAH+w=7aWxdY3KuTaYym1GiAowRRHBc=2AJPPgqOmN8G6L0xT2A@mail.gmail.com> <20200525023515.7855610a@tarpaulin.shahaf.local2> <CAH+w=7bTCCC2XBr+_HCAPqXWuOV_YOrDv+36C6jJScKrxZjhLQ@mail.gmail.com>
On Sun, May 24, 2020 at 7:35 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Bart Schaefer wrote on Sat, 23 May 2020 14:30 -0700:
> > @@ -133,6 +140,28 @@ if ((fun)) then
> > + for (( hist=1; hist <= savehist; hist++ )) print -rs -- "$var[hist]"
>
> This generates a syntax error when SHORT_LOOPS is unset.
I think zed has a long-standing problem with SH_WORD_SPLIT and
probably some other SH_ options?
% setopt shwordsplit
% zed "/tmp/one two"
Where does this go?
% cat "/tmp/one two"
cat: '/tmp/one two': No such file or directory
% cat /tmp/one
Where does this go?
%
So ... how far do we go to make "zed" compatible with nonstandard
options, and how do we approach doing it? Try to use entirely
portable syntax, or invoke "emulate -L", or something in between?
Look at the handling of function names, too -- it creates the empty
function definition with ${(q-)1} but makes no attempt to quote $1
when calling "functions" or "autoload".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author