[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort and ed/red

From: Eric Blake
Subject: Re: sort and ed/red
Date: Mon, 18 Jan 2010 20:25:04 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090812 Thunderbird/ Mnenhy/

According to graham lawrence on 1/18/2010 4:08 PM:
> I have the Unix utilities for windows that I downloaded on 9/26/09. 2 
> problems.
> 1) ed actually seems to be red.  They are the same size on disk, and work 
> exactly the same, ie ed also only processes files in its own directory, thus
> C:\Program Files\gnuwin32>ed update-links.txt
> 27855
> q

ed is not one of the GNU coreutils.  You may have better luck asking your
questions at the gnuwin32 site where you downloaded it, or at the address
listed by 'ed --help'.  You may also want to try the cygwin environment,
if you want something that feels more like linux (where you use
/cygdrive/c/SortTest.txt instead of c:\SortTest.txt).

> 2) I need to sort a word list in strict binary sequence, but what it does is 
> this
> C:\Program Files\gnuwin32>set LC_ALL=POSIX
> C:\Program Files\gnuwin32>sort C:\SortTest.txt

The gnuwin32 port of coreutils does not have the best reputation for POSIX
compliance.  Again, this is somewhere where cygwin is probably better able
to correctly honor locales straight out of the box.

> I've also tried set LC_COLLATE=POSIX,

In a POSIX-compliant environment, this would work.  But gnuwin32 never
made claims of being POSIX-compliant.


While this may be a valid locale in some implementations, it is not a
standard locale name.  You're lucky if it does anything.

Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]