[Gllug] Bash character-range and locale
- Tethys
tethys at gmail.com
Wed Mar 7 10:39:28 UTC 2007
On 3/7/07, Richard Huxton <dev at archonet.com> wrote:
> I take it that if I want to override locale for one command, I'll need
> something like:
> $ LC_COLLATE=C bash -c 'ls [g-i]*'
> hello
That'd work. Or alternatively, just do it in a subshell:
(LC_COLLATE=C; ls [g-i]*)
Note that you need the semicolon, otherwise you suffer from the same
expansion order problem.
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list