On Tue, Jan 17, 2006 at 02:13:47PM +0100, Dirk Stoecker wrote: > So please tell me a way to use the sort program in contexts which allow no > environment variable settings. I will be happy to accept it.
#! /bin/sh cat > $HOME/bin/sort <<EOF #! /bin/sh LC_ALL=C export LC_ALL exec /usr/bin/sort "$@" EOF chmod 555 $HOME/bin/sort PATH="$HOME"/bin:"$PATH" > Clean design is always good, but it should not reduce the usability. I > have a problem, which is not solvable for now. I don't care for this only > for theoretical reasons, but have a pratical problem. > > > Also, just as you didn't know about the LC_COLLATE option, the rest of > > the world will not know about the new options, either, so these don't > > seem to present much of an advantage. > > Well, options are usually documented in the manual pages. Also the > documentation can contain any additional notes about portability issues > when using the option (or not using it). And BTW the docs could also have > a note about LC_COLLATE changing sort ordering totally. They already do, though. On my system, such a note appears both in the Texinfo documentation and in the manual page. James. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils