Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bracketed-paste and quoting, again
- X-seq: zsh-workers 36194
 
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
 
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- Subject: Re: Bracketed-paste and quoting, again
 
- Date: Mon, 17 Aug 2015 04:03:28 +0200
 
- Cc: zsh workers <zsh-workers@xxxxxxx>
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20120113;        h=mime-version:in-reply-to:references:date:message-id:subject:from:to         :cc:content-type;        bh=QmliHd9nZ2g/S6aNiehswHO3ICNwfRwvBaYKJq5w8Eg=;        b=jn4fPPSpVb04Ll2nYMafhJ6TkHBVhTMA4rwHrB0uJfO6Y4dHE7FNqhIMuO8nhDteSU         kbGN3Ig736rFQBCQjgVtu7uDs0GTVfXKF2N9Z3s7W8k7ZowqgrA73s9nt+rjSUyQEWKx         VdBaeJfB1e4WcCHtOhM9l8Q50cKLO89a/rrRuMr6BhmutPKx9bAjW1+HGWyQBP2N208E         M5+I/ParmXclv7KycnAi+PsdgLdTcQtMo+RQ7y4xZWCfpJxOHVeEcIrFy45i7CWeAmeL         L7kCoZVggdg/W1nDQzqEEoagA47SMT6BxV95iyef7t8HMlBsJcBVqY+8NOq/Jxgm5hBp         fxsA==
 
- In-reply-to: <150816183504.ZM13077@torch.brasslantern.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>
 
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
 
- References: <150816183504.ZM13077@torch.brasslantern.com>
 
On Mon, Aug 17, 2015 at 3:35 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
>         wpaste = stringaszleline((zmult == 1) ? pbuf :
>             quotestring(pbuf, NULL, QT_BACKSLASH), 0, &n, NULL, NULL);
>
> It seems a bit odd for NUMERIC=0 (zmult == 0) to cause quoting to happen.
> Perhaps that should be (zmult <= 1) ?  Should NUMERIC=-1 REMOVE quoting?
In a widget, $NUMERIC is unset if it wasn't specified, can we tell at
this point if it was 1 because of being 1 by default here, or if it
was specified by the user? I think it's a bit odd that alt-0 and
alt-2+ specify quoting while alt-1 has no effect.
-- 
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author