@Dirk: If you look at the /usr/share/doc/bash/COMPAT.gz file, $13 states:
[...]
The portable way to specify upper case letters is [:upper:] instead of A-Z; lower case may be specified as [:lower:] instead of a-z.
[...]
The default for /bin/sh in ubuntu is dash, which seem to behave like older versions of bash (and other shells, e.g. zsh should behave like bash now), that is ignoring the LC_COLLATE environment-variable, which results in shell scripts using the [A-Z]-thing or the like are not destroying anything if it is calling /bin/sh and not /bin/bash, of course.
I do not like the Idea of changing LC_COLLATE, especially for non-english environments.
@Dirk: If you look at the /usr/share/ doc/bash/ COMPAT. gz file, $13 states:
[...]
The portable way to specify upper case letters is [:upper:] instead of A-Z; lower case may be specified as [:lower:] instead of a-z.
[...]
The default for /bin/sh in ubuntu is dash, which seem to behave like older versions of bash (and other shells, e.g. zsh should behave like bash now), that is ignoring the LC_COLLATE environment- variable, which results in shell scripts using the [A-Z]-thing or the like are not destroying anything if it is calling /bin/sh and not /bin/bash, of course.
I do not like the Idea of changing LC_COLLATE, especially for non-english environments.