Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Unicode variables can be exported and are exported metafied
- X-seq: zsh-workers 34017
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: ZyX <kp-pav@xxxxxxxxx>
- Subject: Re: [BUG] Unicode variables can be exported and are exported metafied
- Date: Sat, 20 Dec 2014 00:13:58 +0000
- Cc: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <798181419029050@web11g.yandex.ru>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: ZyX <kp-pav@xxxxxxxxx>, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1054131418926765@web2o.yandex.ru> <20141218192917.4df5324b@pws-pc.ntlworld.com> <20141218194758.329bd9ef@pws-pc.ntlworld.com> <CAH+w=7YZ3kk4mMiZxFdqv1krhsGg7zSCjJr---u9Q9ZmbdJ5hA@mail.gmail.com> <20141219181652.GA3996@localhost.mi.fu-berlin.de> <20141219212125.1e1fea6b@ntlworld.com> <798181419029050@web11g.yandex.ru>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author