>>>>> "Steven" == Steven G Johnson <[EMAIL PROTECTED]> writes:

Steven> So, there's probably some subtle error with the various evals
Steven> and redirects and pipes in the new version.  Surely we have a
Steven> sh guru who can identify the problem?

Yep, that would help :)

Here is a small test case:

------------------------------------------------------------
#! /bin/sh

F77=/tmp/fake77

cat >$F77 <<\EOF77
#! /bin/sh

echo "Stdout"
echo "Stderr" >&2
EOF77

chmod +x $F77

exec 5>./config.log
ac_link='$F77 >&5'

# ====================
# Save the "compiler output file descriptor" to FD 8.
exec 8>&5
# Temporarily redirect compiler output to stdout, since this is what
# we want to capture in AC_LINK_OUTPUT.
exec 5>&1
ac_link_output=`eval $ac_link 2>&1 | grep -v 'Driving:'`
# Restore the "compiler output file descriptor".
exec 5>&8
# ====================

echo "$ac_link_output" | sed 's/^/| /'
------------------------------------------------------------

When run, this script says:

/tmp % ./f77test                                                 nostromo 11:15
Stdout
| Stderr

while it should be

| Stdout
| Stderr

IIUC.

You can only change what is in between the `# ===================='.

        Akim

Reply via email to