Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Evaluating parameters in general-purpose widgets
- X-seq: zsh-users 23097
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Evaluating parameters in general-purpose widgets
- Date: Thu, 18 Jan 2018 22:25:58 -0800
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gVFhBOwLGWhUoUI03UMTfUzox+34c2DdpfBz3xE0r0U=; b=RbYrlqaiFNRwc7wZh+/xPm7jKyP2mLCp0f8XKYz08np8vTSpCDyqYLGQhn2Xudss7c 0x6Wac4Dzq14euQo9Fxhp3SYHvdb+TMOPwpWWMGuA9tVp9ZNiyg8R8U+Jwg3Ewz+7DHI LieRDz0SzUZXrln5p+mpwuAftmMXC2/KZ4eEzSPulsp30C33jLci2n83f0fuh8EL9cXc DigUTG5Lanq553bKpKOwYCoktxbJdO4c03EEX3DjrWwPaqr6u8Mdq9bxJrPjM7nz5E80 efXtKLuMyAMONaD3ZCf3yP9yfoQmJjGIlslYBe2C6o7OSiuVVW+9V9F/fFGI1vUmuJSL HR6g==
- In-reply-to: <20180119002154.ssgbaowmrjvehme5@tarpaulin.shahaf.local2>
- 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: <20180119002154.ssgbaowmrjvehme5@tarpaulin.shahaf.local2>
On Thu, Jan 18, 2018 at 4:21 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Is it safe for zsh-syntax-highlighting to evaluate parameter expansions
> in the input?
Depending on how costly you're willing to make this, you could always
use "${$(print -nr -- "$foobar"X)#X}" to assure the parameter is
evaluated where it can't have any effects on the current shell.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author