[TxMt] Re: Textmate bash_init.sh infinite loop -- suggestions?
joseph davison
jwdavison at me.com
Sun Jan 24 15:26:17 UTC 2010
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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list