Recently any attempt to do something in TM that required a shell command would hang.  After finding the troubleshooting info on the wiki, I ran the following command from the terminal.  The results are shown.  Any suggestions on how to fix?  My shell-fu is pretty rusty.

BASH_ENV=/Applications/TextMate.app/Contents/SharedSupport/Support/lib/bash_init.sh /bin/bash -xc 'echo test' 2> tm.debug

tm.debug contents:
--------------------------------------------------------------------------------------
+ unset BASH_ENV
+ export LC_CTYPE=en_US.UTF-8
+ LC_CTYPE=en_US.UTF-8
+ : /Users/user/Library/Application Support/TextMate/bash_init.sh
+ '[' '!' -f '/Users/user/Library/Application Support/TextMate/bash_init.sh' ']'
+ set +u
+ [[ -d /bin ]]
+ PATH=/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/bin
+ [[ -d /bin/CocoaDialog.app/Contents/MacOS ]]
+ [[ -d '' ]]
+ export PATH
+ [[ -f /Users/user/Library/Application Support/TextMate/bash_init.sh ]]
+ . '/Users/user/Library/Application Support/TextMate/bash_init.sh'
++ unset BASH_ENV
++ export LC_CTYPE=en_US.UTF-8
++ LC_CTYPE=en_US.UTF-8
++ : /Users/user/Library/Application Support/TextMate/bash_init.sh
++ '[' '!' -f '/Users/user/Library/Application Support/TextMate/bash_init.sh' ']'
++ set +u
++ [[ -d /bin ]]
++ PATH=/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/bin:/bin
++ [[ -d /bin/CocoaDialog.app/Contents/MacOS ]]
++ [[ -d '' ]]
++ export PATH
++ [[ -f /Users/user/Library/Application Support/TextMate/bash_init.sh ]]
++ . '/Users/user/Library/Application Support/TextMate/bash_init.sh'
+++ unset BASH_ENV
+++ export LC_CTYPE=en_US.UTF-8
+++ LC_CTYPE=en_US.UTF-8
+++ : /Users/user/Library/Application Support/TextMate/bash_init.sh
+++ '[' '!' -f '/Users/user/Library/Application Support/TextMate/bash_init.sh' ']'
+++ set +u
+++ [[ -d /bin ]]
+++ PATH=/opt/local/bin:/opt/local/sbin:/usr/local/git/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/local/imagemagick-6.5.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/bin:/bin:/bin
+++ [[ -d /bin/CocoaDialog.app/Contents/MacOS ]]
+++ [[ -d '' ]]
+++ export PATH
+++ [[ -f /Users/user/Library/Application Support/TextMate/bash_init.sh ]]
+++ . '/Users/user/Library/Application Support/TextMate/bash_init.sh'

... and so on, nesting deeper and deeper, while adding :/bin to the path on each level