diff options
author | devzero2000 <devzero2000> | 2013-07-03 11:04:50 +0000 |
---|---|---|
committer | devzero2000 <devzero2000> | 2013-07-03 11:04:50 +0000 |
commit | 0eee2afd3d5506f218cfaec6ced893962390b069 (patch) | |
tree | f647ae61dff04d38036515bd5a489826190f9b14 /testit.sh | |
parent | 7c74f219a1212595bca660f96c7aa6b828fe2672 (diff) | |
download | libpopt-0eee2afd3d5506f218cfaec6ced893962390b069.tar.gz |
malloc check voodo portability quirk
Get rid of a non portable shell export VAR=VALUE
costruct. "Posix requires export to honor assignments
made as arguments, but older shells do not support this,
including /bin/sh in Solaris 10.
Portable scripts should separate assignments
and exports into different statements"
(from http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html)
Diffstat (limited to 'testit.sh')
-rwxr-xr-x | testit.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,9 +3,11 @@ # malloc voo-doo ############################################### # see http://lists.gnupg.org/pipermail/gcrypt-devel/2010-June/001605.html -export MALLOC_CHECK_=3 +MALLOC_CHECK_=3 +export MALLOC_CHECK_ # http://udrepper.livejournal.com/11429.html -export MALLOC_PERTURB_=`expr \( $RANDOM % 255 \) + 1 ` +MALLOC_PERTURB_=`expr \( $RANDOM % 255 \) + 1 ` +export MALLOC_PERTURB_ # if [ -z "${MALLOC_PERTURB_}" ] # XXX: some shell don't have RANDOM ? then |