Re: Tru64 losing files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tow21@xxxxxxxxx writes:

>> Toby White <tow21@xxxxxxxxx> writes:
>
> So it looks like there's a buggy version of bash installed here. Hmm.
> I'll try and cut the failing script down to a meaningful size and
> report it to the sysadmin.

Hmm. I have cut the script down to a minimal size; it's shown below.

------------------
#! /bin/sh
ac_env_build_alias_set=${build_alias+set}

trap 'exit_status=$?
  rm -rf confdefs* &&
    exit $exit_status
     ' 0

echo >confdefs.h

echo here1 `ls -l confdefs.h`
for ac_var in `(set) 2>&1; do
echo here2 `ls -l confdefs.h`
done
-------------------

The second ls fails under bash-1.14.3 on the machine in question, though
it passes under /bin/sh, and under bash-2.05 (which is the version on 
all other machines I have access to).

Interestingly, removing the parentheses around set allows the second
ls to pass. So my hypothesis is that subshelling the set is triggering
the trap, and removing confdefs.h. 
Indeed, if I insert:
(echo here0) just before here1, then confdefs.h is removed earlier,
and the first ls also fails.

I don't know enough about shells and signals to know whether this is
reasonable behaviour.

Toby

-- 
Dr. Toby White, Dept. of Earth Sciences, Downing Street, Cambridge CB2 3EQ. UK
Email: <tow21@xxxxxxxxx>


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux