ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Denis G. Samsonenko" <d.g.samsonenko@gmail.com>
To: "Sergey Stepanov" <dlagovna@mail.ru>,
	"ALT Linux Community" <community@lists.altlinux.org>
Subject: Re: [Comm] Неправильная сортировка в консоли?
Date: Fri, 13 Oct 2006 11:23:42 +0900
Message-ID: <957265820610121923j4ebfc99y111ead8438fdd33c@mail.gmail.com> (raw)
In-Reply-To: <E1GY9cf-000PZP-00.dlagovna-mail-ru@f23.mail.ru>

День добрый!

13.10.06, Sergey Stepanov написал:
> > А теперь сравните с таким ответом:
> > $ locale |grep LC_COLLATE
> > LC_COLLATE="ru_RU.KOI8-R"
> > $ LC_COLLATE=C
> > $ locale |grep LC_COLLATE
> > LC_COLLATE="ru_RU.KOI8-R"
> > $ export LC_COLLATE
> > $ locale |grep LC_COLLATE
> > LC_COLLATE=C
...
> # LC_COLLATE=C
> # set | grep LC_COLLATE
> LC_COLLATE=C
> # locale |grep LC_COLLATE
> LC_COLLATE="ru_RU.KOI8-R"
...

Вам же выше уже написали в сообщении, на которое вы отвечаете, что
чтобы изменения вами переменной LC_COLLATE (как и любой другой) дошли
до дочернего процесса, необходимо выполнять не просто "LC_COLLATE=C",
а "export LC_COLLATE=C". Или пускать вашу ls так:

...]$ LC_COLLATE=C ls -1

Так что таки читать надо что-нибудь по shell (bash), а не про
локализацию, чтобы понимать, как устанавливать переменные окружения
среды.

-- 
Всего доброго,

Денис.

  reply	other threads:[~2006-10-13  2:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 23:05 ` Sergey Stepanov
2006-10-13  2:23   ` Denis G. Samsonenko [this message]
2006-10-12 23:49 ` Sergey Stepanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=957265820610121923j4ebfc99y111ead8438fdd33c@mail.gmail.com \
    --to=d.g.samsonenko@gmail.com \
    --cc=community@lists.altlinux.org \
    --cc=dlagovna@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git