From: philippe DOT rua AT ntc DOT nokia DOT com (Philippe Rua) Subject: bash hangs in $(...) 9 Dec 1996 04:43:44 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <32ABF509.33FA.cygnus.gnu-win32@ntc.nokia.com> Reply-To: philippe DOT rua AT ntc DOT nokia DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (WinNT; I) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 "gnu-win32-request AT cygnus DOT com" with one line of text: "help".