directhex / mono-snapshot-common

Tools for Mono snapshot package management
1 stars 0 forks source link

Sourcing mono-snapshot in zsh kills the shell #1

Open carlosmn opened 9 years ago

carlosmn commented 9 years ago

Running . mono-snapshot mono in zsh causes the shell to exit. When running as a sub-shell, I see the following output

% . mono-snapshot mono
/usr/bin/mono-snapshot:7: no matches found: ".*sh"
This script will help you to set up your environment to use a
snapshot package of Mono. To use it, run:

        . mono-snapshot APP/VER

You have the following possible combinations of APP/VER:

        mono/20150528140749

Calling APP without specifying VER will load the latest version

It looks like it's unexpectedly activating the called-as-script logic for the help.

gpaucot commented 9 years ago

I solved it, while the pull-request is accepted, replace the content of /usr/bin/mono-snapshot with this: https://github.com/gpaucot/mono-snapshot-common/blob/master/mono-snapshot

happy zsh :wink: