Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fun thing, manual execution of $( ) command substitution
- X-seq: zsh-users 23398
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Fun thing, manual execution of $( ) command substitution
- Date: Mon, 21 May 2018 17:38:33 +0200
- 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 :content-transfer-encoding; bh=iK0XhJHr3xkh0A0VbxDDhqS8ycpZ+e26hVWBWsjZNUA=; b=VQ6F2W2oMznX4WtVthmDbFlK1swrBLHXrHWJQx7T7oj/vavXh0k0iV9tyAfYRnCWkk tF3N44ZE7JFKEAyGqnfpqD9JVw9Lz6o+bCpHoQt5dt3J0e8R68YA8FNGFKWTGP4+YWEB 2BcosR9H2hJn6rndjltlFDspy9asvTV9KiC3i+gCSqwJ7vKKPCz10gyB2Fv97UFpGWTf jHYaSyflT98gSV0QAyFqmV7qHKZWZBV4KOl3b0+kcDylWiRFJlvSLOJ6rBnE1I02eidw BSRTzbnXZt5xszAYKP4ByGEXqNv2RwQ5ixgCpl+Inytf5uqSBlzA8k1z1oW8rx9Jb7zH m7Ug==
- In-reply-to: <CAKc7PVCu=trXd9WhkH13pq9DaDt5UtpMDA8YBbNA7b6r5YtwVQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCu=trXd9WhkH13pq9DaDt5UtpMDA8YBbNA7b6r5YtwVQ@mail.gmail.com>
On 20 May 2018 at 15:59, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> [[ "${cmds[1]}" = "$buffer" ]] && return 0
I have a bug-fix, someone might one day use it and become confused –
REPLY isn't set to "$buffer" in the line above. So:
[[ "${cmds[1]}" = "$buffer" ]] && { REPLY="$buffer"; return 0; }
I.e. no $( ) areas detected in buffer -> return unchanged buffer (no
command substitution done).
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author