Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 4
    They work fine on my system. Please edit your question and tell us exactly how the aliases are defined. Do you also have this with very simple aliases? Try running alias a="echo foo"; alias b="echo bar"; a; b. Does that work? Commented Feb 26, 2016 at 18:18
  • what are those aliases ? I mean when you say stopdev, what does the alias do ? I created 2 aliases to 2 simple commands and it works fine with a semicolon in between them Commented Feb 26, 2016 at 18:18
  • One of them is alias stopdev="cd $HOME/website; make website_stop; make backend_stop;". I think we've found the problem. If either of you want to provide an answer to the effect of "it's because your alias has a semi-colon at the end of its definition, dummy" I'll be happy to accept it. Commented Feb 26, 2016 at 18:23
  • 2
    P.S. Just to be clear for anyone reading this later, removing the semi-colon from the end of my alias's definition did in fact fix the problem. Commented Feb 26, 2016 at 18:26
  • 1
    P.P.S. And for anyone reading the above P.S., note that removing the last semi-colon is a bad idea as it will take any parameters fed to the alias and feed them to the make backend_stop command, as noted in @Gilles' answer. Commented Feb 27, 2016 at 1:59