Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
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;
        bh=fR4hwWS/IEFp26D6kaAXJZw+uBvHhzJRqlF7TEzjg7s=;
        b=O4zb0DcyX7UCsJi9VeQsoctsSWb8GeyON6F8YhtpTHopGP7WuZcyAwS10II85lwIpG
         1Yqsqd9RFw+uGwQwaEZYUgW5s4cvcEMSSrjs9OyYiV8zIllWf3UXLVs9gGJtzsQtkhi4
         0ty7nHdFuzF6X7nQz0HTkc2TEbEN+idCx78OZWOowP7ExfnJ6atxva0RK07cWoCe1/Et
         8eTnUGHY0uj2O1Ltpt/hMKvo0x+3FlE/adIiQYf2kMwzWx24GzQcKlPk2hYIhJ9uQy9P
         dE1CIxbn9cPiT9/5zj3Gx912eVaRKcuWYJnRxCuRN1OCRIG75tv2faZ7wmVXG2TXHGJj
         +G8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:cc;
        bh=fR4hwWS/IEFp26D6kaAXJZw+uBvHhzJRqlF7TEzjg7s=;
        b=WLBzOm4mp/HLw3w8R2eEXPpc1LfuCzu9aREpbY7ofw3+0tFr+aqwGrby25tMf6srQp
         M8dpyTWn+pFIRyQJ0gdCRUNaNNM9nY2QO3NC64tydZ4+69z2PtgOlrXOu55s773MJE7e
         98HjQ+o1XVpzUvVAIObTLrWhVWoOSpT+kKD0V7cljjr/jCE2r9xRPKIrymK41i6RuTtR
         OuKJUaGsGNwLAJLUbFiObb0DP3r6DWd8Z4P2+tm4ZqlM68GVq4no8zPo+Y7U+BcKJ85j
         T7KASGVyeh5R1AhhIlT6CPs65Rm2bXqHXjeWhxdL8i1WmdjriQAWtKXDdhXIyPi5FEsz
         a8cQ==
X-Gm-Message-State: AOPr4FW1/UsihSinv7t1mJnlsWD5f1IuTitSlCxEZxtTfvf5P/XBH2H3WYwvP0WnpfZ9pRREwSxwWu7i5fGewQ==
MIME-Version: 1.0
X-Received: by 10.13.241.199 with SMTP id a190mr22911165ywf.47.1461618771190;
 Mon, 25 Apr 2016 14:12:51 -0700 (PDT)
In-Reply-To: <160424145300.ZM4045@torch.brasslantern.com>
References: <571BBF3C.50402@matrix.ai>
	<160423151436.ZM6912@torch.brasslantern.com>
	<20160424131748.441d605f@pwslap01u.europe.root.pri>
	<160424113644.ZM3576@torch.brasslantern.com>
	<20160424200132.7d0d00bc@ntlworld.com>
	<160424145300.ZM4045@torch.brasslantern.com>
Date: Mon, 25 Apr 2016 23:12:51 +0200
Message-ID: <CAHYJk3T_hS5S_bnVHgGMN5=42BG38Y5_Mg-pG5i9FHQoSRd79A@mail.gmail.com>
Subject: Re: Possible ZSH bug with IO direction
From: Mikael Magnusson <mikachu@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh workers <zsh-workers@zsh.org>
Content-Type: text/plain; charset=UTF-8
X-Seq: zsh-workers 38342

On Sun, Apr 24, 2016 at 11:53 PM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> On Apr 24,  8:01pm, Peter Stephenson wrote:
> }
> } The alternative might be to do something similar in the lower levels of
> } zsh, i.e. map \r\n to \n when reading shell input.  If done in input.c
> } it's no worse than doing it in the OS abstraction, and doesn't affect
> } fd's used by othe programmes.
>
> Will input.c cover the $(...) construct, "read" command, etc.?  All of
> those have to get CRFL translation or things like ${(f)...} don't work;
> stray \r end up in parameter values, and so on.

It's perhaps worth noting that (f) is explicitly documented as being
short for ps:\n: and nothing else.

-- 
Mikael Magnusson

