* build-aux/mktempd (mktempd): Vendor-supplied expr from at least
OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
+2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
+
+ use "echo STR|wc -c" rather than unportable "expr length STR"
+ * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
+ OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
+
2008-05-14 Jim Meyering <meyering@redhat.com>
use dd ifs=$n count=1 ... rather than less-portable head -c$n
base_template=`echo "$template"|sed 's/XX*$//'`
# Calculate how many X's we've just removed.
- nx=`expr length "$template" - length "$base_template"`
+ template_length=`echo "$template" | wc -c`
+ nx=`echo "$base_template" | wc -c`
+ nx=`expr $template_length - $nx`
err=
i=1