Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Patch: Zle edit-command-line does not work with setopt GLOB_SUBST
- X-seq: zsh-workers 43913
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Karsten Borgwaldt <kb@xxxxxxxxxx>
- Subject: Re: Patch: Zle edit-command-line does not work with setopt GLOB_SUBST
- Date: Tue, 18 Dec 2018 21:34:37 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=a+yYqb/sOfEwtIfgvZV/VYZbh/FkkIy53JGnDIehT4I=; b=KvLt1iHTo42Puz4CFWO9dLbtnaCSRhRY7bg3crhpdJBGATiiLEf5X1FkYD/qEZm9dU TrF4QyI5yPInfSUkr71gr7LG2YSwhiQCYkMXFC3CLjSL6lKtX2O8GnvsrKtok0/Exfn2 mp2gYKm01NAd2O67ysN2jnDZWBNvIglPdKF7c4/jClwCtu9S3MKu8vIGXWfbY7HVqJkQ mRmP4p/F8GlWPuetHZlUcw3VnFkhOupcOgxAgVpps8Kg2yyI/QjonBWYlrZmic2PUGaK A678yLEOsTDs6Ptbmuu1sh2TY0zHuz7k0ttEqKvNVy9lbZMPHsgpJBJUHKwuKB40KPfG UZrA==
- In-reply-to: <3175230.M9Xzj6aNrv@thor>
- 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: <3175230.M9Xzj6aNrv@thor>
On 12/18/18, Karsten Borgwaldt <kb@xxxxxxxxxx> wrote:
> Dear developers,
>
> with "setopt GLOB_SUBST" the widget edit-command-line just prints an error
> and
> exits on my systems. Adding "noglob" to the function fixes it.
>
> Tested environment:
> Debian stretch with zsh 5.3.1 (x86_64-debian-linux-gnu)
> Terminals:
> * Konsole 16.12.0 (TERM=xterm-256color)
> * XTerm(327) (TERM=xterm)
>
> With both terminals the value of zle_bracketed_paste was
> ( $'\e[?2004h' $'\e[?2004l' )
>
> Steps to reproduce:
> # env -i TERM=$TERM zsh -f
> # setopt glob_subst
> # autoload -U edit-command-line
> # edit-command-line
> (anon):6: bad pattern: ^[[?2004l
>
> Proposed fix is attached.
>
> Feel free to ask me for additional information.
You could use
emulate zsh -c 'autoload edit-command-line'
but the correct fix is to say 'emulate -L zsh' at the top of the
function itself.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author