[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Workaround for ash braindamage
From: |
Pavel Roskin |
Subject: |
Workaround for ash braindamage |
Date: |
Wed, 20 Sep 2000 15:19:42 -0400 (EDT) |
Hello!
When I run this little script under ash 0.2 it says me "I'm bad":
#! /bin/sh
false
a=b || echo "I'm bad"
As far as I understand variable assignments don't affect the current error
code.
Actually, there is no point in checking the error code form assignments.
So this patch needs to be applied.
After applying this patch "CONFIG_SHELL=ash ./testsuite" passes all tests!
ChangeLog:
* acgeneral.m4 (_AC_SHELL_TMPDIR): Don't check status of variable
assignment - it's undefined in ash.
Regards,
Pavel Roskin
================================
Index: acgeneral.m4
--- acgeneral.m4 Wed Sep 20 12:31:57 2000
+++ acgeneral.m4 Wed Sep 20 15:02:10 2000
@@ -789,7 +789,8 @@
test -n "$tmp" && test -d "$tmp"
} ||
{
- tmp=$TMPDIR/$1$$-$RANDOM && (umask 077 && mkdir $tmp)
+ tmp=$TMPDIR/$1$$-$RANDOM
+ umask 077 && mkdir $tmp
} ||
{
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
================================
- Workaround for ash braindamage,
Pavel Roskin <=