>>>>> "Harlan" == Harlan Stenn <[EMAIL PROTECTED]> writes:

Harlan> Akim, Here's the sh -x testsuite snippet.

Thanks, this is the culprit:

  at_dir=`cd "$at_dir" 2>/dev/null && pwd`

because PATH may include nonexistent dirs, I included the 2>/dev/null
part.

Can you try these please?  I'd like to know if the problem is with the
assign or the substitution, etc.

at_dir=`(cd /foo && pwd) 2>/dev/null`
echo at_dir=$at_dir

at_dir=`(cd /foo && pwd)` 2>/dev/null
echo at_dir=$at_dir

echo `(cd /foo && pwd) 2>/dev/null`

echo `(cd /foo && pwd)` 2>/dev/null

at_dir=`echo foo 2>/dev/null`
echo at_dir=$at_dir

at_dir=`echo foo` 2>/dev/null
echo at_dir=$at_dir

echo `echo foo 2>/dev/null`

echo `echo foo` 2>/dev/null

Reply via email to