DEV Community

Discussion on: Shellscripting: Conditional Execution

Collapse
 
jimmyml profile image
Jimmy Maturana

Thanks for you post. It's very clear and usefully.
I think that here you have a bit error:

MY_SHELL="zsh"

if ["$MY_SHELL" = "zsh"]
    then
        echo "You are the zsh shell user!"
fi

You forget the space after an before [].

Sorry by my english.

Collapse
 
puritanic profile image
Darkø Tasevski

Thanks for noticing, I'll fix it right away!