summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1994-12-20 00:42:41 +0000
committerTheodore Tso <tytso@mit.edu>1994-12-20 00:42:41 +0000
commit56192b1a773a6cb085bee132c140bed2aa2648c2 (patch)
tree1060e1a84d0995bef135da45883be0c2298dbd6d /src/util
parentcbc4353acb6e09b923a1b6def815dcbfcf5a62f2 (diff)
downloadkrb5-56192b1a773a6cb085bee132c140bed2aa2648c2.tar.gz
krb5-56192b1a773a6cb085bee132c140bed2aa2648c2.tar.xz
krb5-56192b1a773a6cb085bee132c140bed2aa2648c2.zip
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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4738 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/autoconf/ChangeLog9
-rw-r--r--src/util/autoconf/acgeneral.m44
2 files changed, 12 insertions, 1 deletions
diff --git a/src/util/autoconf/ChangeLog b/src/util/autoconf/ChangeLog
index 1b333a85c..d11ac7d83 100644
--- a/src/util/autoconf/ChangeLog
+++ b/src/util/autoconf/ChangeLog
@@ -1,3 +1,12 @@
+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.
diff --git a/src/util/autoconf/acgeneral.m4 b/src/util/autoconf/acgeneral.m4
index 215e9e72c..24ec21b48 100644
--- a/src/util/autoconf/acgeneral.m4
+++ b/src/util/autoconf/acgeneral.m4
@@ -902,7 +902,9 @@ EOF
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