From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22508 invoked by alias); 6 Oct 2015 19:05:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36806 Received: (qmail 90 invoked from network); 6 Oct 2015 19:05:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1444157942; bh=ZijfvbRZnnYf9MPxkfzqtYEewxGbY6jFgwkev7uuYBc=; h=From:To:In-Reply-To:References:Subject:Date; b=qPMmW/IyedNwe0sfGJj1HUuRCvGXHpLnorrvL7j+D5EP088S521dod2Oe4YGNL/DG ABjNUXMQr9MtaOjdof8kLqL4qEaIOXoMythird+TKpj+xxzbyVNAAo4LY9UIjBySDF UWjFLtsuaoNAiUP4TSWMqOhwr2TLX6pHG5EBLi8A= From: ZyX To: Bart Schaefer , Zsh hackers list In-Reply-To: <151006084416.ZM5546@torch.brasslantern.com> References: <20151006110401.GA9868@chaz.gmail.com> <151006084416.ZM5546@torch.brasslantern.com> Subject: =?utf-8?B?UmU6IFsicmVncmVzc2lvbiJdIFN0w6lwaGFuZT0gMSB6c2ggLWMgJ2VjaG8gJFN0w6lwaGFuZSc=?= MIME-Version: 1.0 Message-Id: <24401444157941@web22h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Tue, 06 Oct 2015 21:59:01 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 06.10.2015, 18:44, "Bart Schaefer" : > This is discussed in the thread starting at workers/34004 and leading > up to workers/34015. > > Nobody ever commented on whether the environment is allowed to contain > names with the high-order bit set, but POSIX identifiers cannot, so it > stands to reason you can't import something with that shape of name. >>From the list of shells I have ${Stéphane} with Stéphane=2 in environment accept only tcsh and ksh now (LANG=ru_RU.UTF-8). Not accepting: mksh, rcsh*, posh, bash, dash, fish. No shell accepts this with LANG=C. glibc+tcc+getenv() call is fine with this name even with LANG=C. Note: I do not know which standard describes environment variable names and what exactly it says about the issue. * Plan 9 rc reimplementation, uses name `rcsh` due to name conflict with openrc. > > zsh -f -o posixidentifiers -c 'Stéphane=2; echo $Stéphane' > zsh:1: command not found: Stéphane=2 > éphane > > In effect the environment is always treated as POSIX_IDENTIFIERS. > > POSIX_IDENTIFIERS >      When this option is set, only the ASCII characters a to z, A to Z, >      0 to 9 and _ may be used in identifiers (names of shell parameters >      and modules).