From 56192b1a773a6cb085bee132c140bed2aa2648c2 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 20 Dec 1994 00:42:41 +0000 Subject: 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 --- src/util/autoconf/ChangeLog | 9 +++++++++ src/util/autoconf/acgeneral.m4 | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src/util') 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 * 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 -- cgit