From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16769 invoked by alias); 20 Dec 2014 00:21:26 -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: 34017 Received: (qmail 22737 invoked from network); 20 Dec 2014 00:21:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=ErEA3F7cZQZzOG1hwqq0gxKGesDGUxcqF4nupGWfi8k=; b=LtUMboT/342A3WnVVzaMt7HgQF+83Sh2ooH1kkkOhvA7DSTuRcV+3mwwsjIKqWitBO pmxMFu+aoY7r+3nplZLonzm4sPUoIY5LvwT6pRlPmkYhq0nr7a5X54HTl1YVSsUVz8jt lUEHos3o5wEqfvAtF8x6yC34mCRRvIWlm6vsMK57AqlJulzh/gvZpa6sPsGgwOMV9bAx V3Ba29qLE5xu0KfNGoVwrmQh6ykdjFhpl4Vd5A1C0cDOcTAOWh0DgBlogXjX7eOOfNC7 TQ5BMq3FZhSqCPs5Od0LleQrRsWnK3KJtXXdGbb1zv3ykhY9QgBhdw/2cwBw5deze91h MMBw== X-Received: by 10.180.72.199 with SMTP id f7mr10463089wiv.53.1419034440243; Fri, 19 Dec 2014 16:14:00 -0800 (PST) Date: Sat, 20 Dec 2014 00:13:58 +0000 From: Stephane Chazelas To: ZyX Cc: Peter Stephenson , "zsh-workers@zsh.org" Subject: Re: [BUG] Unicode variables can be exported and are exported metafied Message-ID: <20141220001357.GA21647@chaz.gmail.com> Mail-Followup-To: ZyX , Peter Stephenson , "zsh-workers@zsh.org" References: <1054131418926765@web2o.yandex.ru> <20141218192917.4df5324b@pws-pc.ntlworld.com> <20141218194758.329bd9ef@pws-pc.ntlworld.com> <20141219181652.GA3996@localhost.mi.fu-berlin.de> <20141219212125.1e1fea6b@ntlworld.com> <798181419029050@web11g.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <798181419029050@web11g.yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) 2014-12-20 01:44:10 +0300, ZyX: [...] [about making the shell syntax locale-dependant] > bash: echoes $абв [...] You'd have gotten a different behaviour in a single-byte locale. Related discussion: http://thread.gmane.org/gmane.comp.shells.bash.bugs/22367 Personally, I think I'd rather shell variable names be limited to ASCII [:alnum:]_. Making the shell syntax locale dependant is a problem in scripts (and we're already affected by that to some extent with utilities) because there, it's the *author*'s locale that matters, not the user's. (Or else, you could do like rc and allow anything allowed in env vars (rc allows any name as long as it's not empty and doesn't contain `=`). -- Stephane