Re: ls now case insensitive?
On Mon, Oct 23, 2000 at 10:14:55PM -0400, cfm@maine.com wrote:
> On Mon, Oct 23, 2000 at 09:09:38PM -0400, Ben Collins wrote:
> > On Mon, Oct 23, 2000 at 09:16:18PM -0400, cfm@maine.com wrote:
> > >
> > > re: ls now case insensitive?
> > >
> > > I've got scripts breaking now because ls seems no longer
> > > case insensitive.
> > >
> > > tk.c
> > > tk.o
> > > TODO
> > > tty
> > > unfold_wk.c
> > >
> > > Is this a bashism, a glibc thing, locales or POSIX way-it-will-be?
> > >
> > > If it's not just bash, can we expect perl to "break" soon too?
It's just ls.
> >
> > I suspect locale. Try doing "LC_ALL=C ls"
>
> Thank you Ben, that works.
>
> Is the long term solution to add local to /etc/profile:
> export LC_ALL=C
> or otherwise?
The fileutils Changelog says that ls was changed to use strcoll rather
than strcmp recently. So if you don't want to change your whole locale,
you can simply set LC_COLLATE=C
Cheers,
Chris
--
IF I HAD A MINE SHAFT, I don't think I would just abandon it. There's
got to be a better way.
-- Jack Handley, The New Mexican, 1988.
Reply to: