* gnulib-tool: Solaris tr needs [] around ranges.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
* tests/test-pipe-filter-gi1.c (main): Likewise.
* tests/test-pipe-filter-ii1.c (main): Likewise.
+2010-10-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ more ports to Solaris tr, which needs [] around ranges
+ * gnulib-tool: Solaris tr needs [] around ranges.
+ * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
+ * tests/test-pipe-filter-gi1.c (main): Likewise.
+ * tests/test-pipe-filter-ii1.c (main): Likewise.
+
2010-10-05 Eric Blake <eblake@redhat.com>
bootstrap: fix Solaris regression
# _LIBDEPS and _LTLIBDEPS variables are not needed if this library is
# created using libtool, because libtool already handles the dependencies.
if test "$libtool" != true; then
- libname_upper=`echo "$libname" | LC_ALL=C tr 'a-z-' 'A-Z_'`
+ libname_upper=`echo "$libname" | LC_ALL=C tr '[a-z]-' '[A-Z]_'`
echo " ${libname_upper}_LIBDEPS=\"\$gl_libdeps\""
echo " AC_SUBST([${libname_upper}_LIBDEPS])"
echo " ${libname_upper}_LTLIBDEPS=\"\$gl_ltlibdeps\""
# _LIBDEPS and _LTLIBDEPS variables are not needed if this library is
# created using libtool, because libtool already handles the dependencies.
if test "$libtool" != true; then
- libname_upper=`echo "$libname" | LC_ALL=C tr 'a-z-' 'A-Z_'`
+ libname_upper=`echo "$libname" | LC_ALL=C tr '[a-z]-' '[A-Z]_'`
echo " ${libname_upper}_LIBDEPS=\"\$gl_libdeps\""
echo " AC_SUBST([${libname_upper}_LIBDEPS])"
echo " ${libname_upper}_LTLIBDEPS=\"\$gl_ltlibdeps\""
# _LIBDEPS and _LTLIBDEPS variables are not needed if this library is
# created using libtool, because libtool already handles the dependencies.
if test "$libtool" != true; then
- libname_upper=`echo "$libname" | LC_ALL=C tr 'a-z-' 'A-Z_'`
+ libname_upper=`echo "$libname" | LC_ALL=C tr '[a-z]-' '[A-Z]_'`
echo " ${libname_upper}_LIBDEPS=\"\$gl_libdeps\""
echo " AC_SUBST([${libname_upper}_LIBDEPS])"
echo " ${libname_upper}_LTLIBDEPS=\"\$gl_ltlibdeps\""
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
FNMATCH_H=
- gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
+ gl_fnmatch_required_lowercase=`
+ echo $gl_fnmatch_required | tr '[[A-Z]]' '[[a-z]]'
+ `
gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
AC_CACHE_CHECK([for working $gl_fnmatch_required fnmatch],
[$gl_fnmatch_cache_var],
#include "macros.h"
-/* Pipe a text file through 'tr a-z A-Z', which converts ASCII characters from
- lower case to upper case. */
+/* Pipe a text file through 'tr "[a-z]" "[A-Z]"', which converts ASCII
+ characters from lower case to upper case. */
struct locals
{
l.nread = 0;
argv[0] = tr_program;
- argv[1] = "a-z";
- argv[2] = "A-Z";
+ argv[1] = "[a-z]";
+ argv[2] = "[A-Z]";
argv[3] = NULL;
f = pipe_filter_gi_create ("tr", tr_program, argv, false, true,
#include "macros.h"
-/* Pipe a text file through 'tr a-z A-Z', which converts ASCII characters from
- lower case to upper case. */
+/* Pipe a text file through 'tr "[a-z]" "[A-Z]"', which converts ASCII
+ characters from lower case to upper case. */
struct locals
{
l.nread = 0;
argv[0] = tr_program;
- argv[1] = "a-z";
- argv[2] = "A-Z";
+ argv[1] = "[a-z]";
+ argv[2] = "[A-Z]";
argv[3] = NULL;
result = pipe_filter_ii_execute ("tr", tr_program, argv, false, true,