Thank you, that was exactly the problem.  I had, for reasons I no longer recall, copied TextMate's bash_init.sh to my Application Support directory.

Pauli

On Sun, Jan 24, 2010 at 10:26 AM, joseph davison <jwdavison@me.com> wrote:
It seems like your bash_init.sh file sources itself, or a copy.

You didn't happen to copy TextMate's bash_init.sh file to your Application Support directory, did you?

You source the one in /Applications/TextMate.app, which sources the one in your Library/Application Support directory, which, if it's the same as the one in /Applications then sources the one in your Library, which is a loop.

I had some problems with something like that when I started, too.  Try putting only the stuff you want to add to the environment in your Library's version.

joe





On Jan 24, 2010, at 2:08 AM, Pauli Price wrote:
> 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
>
>
> _______________________________________________
> textmate mailing list
> textmate@lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate