Subject: bash hangs in $(...)
From: [email-masked] (Philippe Rua)

9 Dec 1996 04:43:44 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
Original-To: [email-masked]
Original-Sender: [email-masked]

I am using the release-b14 of the GNU-Win32 tools on Win NT 3.51.

'bash' hangs with the following script, the 'dirname' program is also
the one from the distribution:

f1 ()
{
  echo $(f2 $1)
}

f2 ()
{
  echo "$(dirname $1)" # OK
  echo $(f3 $1)        # OK
  x="$(f3 $1)"         # Hangs!
  echo $x
}

f3 ()
{
  echo "$(dirname $1)" # Hangs when called as "x=..." above
}

set -x                 # just to show what happens
f1 /aaa/bb/c

Philippe Rua  -------------------------------------------------
 Phone: +358(9)0-511 25367            Nokia Telecommunications
 Fax  : +358(9)0-511 26698     PO Box 33, 02601 Espoo, Finland
---------------------------------------------------------------
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".