From: HB <npecca@yahoo.com> To: Aleksey Novodvorsky <mandrake-russian@altlinux.ru> Subject: Re: [mdk-re] `sort` behaves not as expected (not as strcmp() would) Date: Mon Oct 1 17:56:11 2001 Message-ID: <20011001175601.A12521@hb.ant-on.net> (raw) In-Reply-To: <3BB86008.678BAF7B@logic.ru>; from aen@logic.ru on Mon, Oct 01, 2001 at 04:22:33PM +0400 Mon, Oct 01, 2001 at 04:22:33PM +0400, Aleksey Novodvorsky wrote: > > Я столкнулся с тем, что не понимаю, как сортирует sort, и как заставить > > его сортировать так, как это сделал бы strcmp(). Разумеется, я читал > > `man sort`, но это не только не помогло, но создало впечатление, что > > работа sort происходит не так, как там описано :-( > Пользуйтесь info, man всегда старее. > Не помню уж с какой версии, но относительно недавно sort стал учитывать > LC_COLLATE. > $ LC_COLLATE=C sort file > спасет. Спасибо! Самостоятельно я никогда бы не догадался, что локаль может влиять на сортировку символов ASCII. Впредь буду пользоваться info. -- HB
prev parent reply other threads:[~2001-10-01 17:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-10-01 15:49 HB 2001-10-01 16:14 ` Aleksey Novodvorsky 2001-10-01 17:56 ` HB [this message]
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=20011001175601.A12521@hb.ant-on.net \ --to=npecca@yahoo.com \ --cc=mandrake-russian@altlinux.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