variables read in using the ${var='bar'} construction are displayed
using the "set" command with the high bit set. (Someone should just
haul off the Ultrix sh and have it shot). Fixed using tr.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4738
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Dec 19 19:20:58 1994 Theodore Y. Ts'o (tytso at tsx-11)
+
+ * acgeneral.m4 (AC_CACHE_SAVE): Work around yet another really
+ horrible Ultrix sh bug. The values of variables read in
+ using the ${var='bar'} construction are displayed using
+ the "set" command with the high bit set. (Someone should
+ just haul off the Ultrix sh and have it shot). Fixed
+ using tr.
+
Fri Nov 4 09:08:33 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
* Version 2.1.
changequote(, )dnl
dnl Allow a site initialization script to override cache values.
# Ultrix sh set writes to stderr and can't be redirected directly.
-(set) 2>&1 |
+# Ultrix sh set also returns variables that were read in from the config file
+# with their high bit set.
+(set) 2>&1 | tr '\201-\377' '\001-\177' |
sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
>> $cache_file
changequote([, ])dnl