Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On my personnal computer, not a server, in my .bash_profile (I'm on OSX) — sym-linked to .bashrc, I have the following line among some others : alias deploy=sh ~/dir/ectory/deploy.sh

The file deploy.sh is chmoded 755, and I can finely execute it manually. But everytime I launch my terminal, I got this message :

-bash: alias: /Users/foo/dir/ectory/deploy.sh: not found

This path exists, the file too. I have other aliases which work.

Why is it throwing me this message?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You get that message because you didn't properly quote the space in your alias. Your alias should have the right side enclosed in quotes like this:

alias deploy='sh ~/dir/ectory/deploy.sh'
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.