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,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=brasslantern-com.20150623.gappssmtp.com; s=20150623;
        h=from:message-id:date:in-reply-to:comments:references:to:subject
         :mime-version;
        bh=DVPmtb5OHTZ+K152eXHOPB/YoKgYsAEGj1eRPJci5+I=;
        b=FPfnzg6J6ygEfueLd909+oYuV9dviVV1i7XmySn75RlD0nK2cU9iv9P2UBAZVfFKTF
         UQolOwfXDdLuPoMXBDva18wbFMD95ZYaq4fgB++PVvQdzzqHpyWCXyPuZ/3YwbPcKf5R
         5BCkuBip+9JUYF7F8T5sNSbbVranfETfnU6OcnQlKtW8m9xV+C9bM1iuyscXOTb+SHTo
         GPddnRlgSMWATcRCk2E9PKrWxK4PF9k3uDLDER91KzsxD9h6DHGaJQk0nn6CxtMpuO89
         JTZ6Z/dx+bavHqklz8IbKz4jyJqPyILTf97YRnJJ0Uin4xWe0/rhwfTcBXFiTgWf6ffu
         4ijA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:message-id:date:in-reply-to:comments
         :references:to:subject:mime-version;
        bh=DVPmtb5OHTZ+K152eXHOPB/YoKgYsAEGj1eRPJci5+I=;
        b=IG/6hecjp26TyV6mwBWNs9MWdI+VBOsNPBTmQWv/JKGgIIYUSljhQPuCKJkuoyvM8d
         rMfBpn9Jq19MNHBj7Ne4qxZ0NZKrpBD6pIs+QQCMj+e+q1ybxCg8vQCH64Jn1bQUMJib
         4PiZyq+82VpmGvItUoIL4H6cI5rXop6J4i90+Xe6663ookGG3qjuixqLQsH9oArkk7h3
         RoXCGtWAJPVwYv03v7ag6wUpwVT0qy50fdOSBFpN7HLfrXQCCnfhgj9Bhr2kXLFsLFSb
         vrKycEupOE+zJTLfU46I3Bya/+R4sphum/RLsmhElOu9jHLTeoKirnMtOso7MlI1qMpX
         6q6w==
X-Gm-Message-State: AOPr4FXTl74I2yQgWLuzq0t/RvgiFbwJXZ930yeXYliNGq09fRUqLcdSb/oEt+ULPfsg5Q==
X-Received: by 10.66.40.236 with SMTP id a12mr44619172pal.58.1461534759413;
        Sun, 24 Apr 2016 14:52:39 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160424145300.ZM4045@torch.brasslantern.com>
Date: Sun, 24 Apr 2016 14:53:00 -0700
In-Reply-To: <20160424200132.7d0d00bc@ntlworld.com>
Comments: In reply to Peter Stephenson <p.w.stephenson@ntlworld.com>
        "Re: Possible ZSH bug with IO direction" (Apr 24,  8:01pm)
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>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: Possible ZSH bug with IO direction
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38330

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.

