Timeline for Why Can't I Call Two Aliases With ";"?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 28, 2016 at 22:54 | vote | accept | machineghost | ||
| Feb 27, 2016 at 2:44 | review | Close votes | |||
| Feb 27, 2016 at 8:56 | |||||
| Feb 27, 2016 at 1:59 | comment | added | Wildcard | 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. | |
| Feb 27, 2016 at 0:16 | answer | added | Gilles 'SO- stop being evil' | timeline score: 12 | |
| Feb 27, 2016 at 0:06 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 | added information from comment |
| Feb 26, 2016 at 18:26 | comment | added | Thomas | You can remove the last ; after backend_stop | |
| Feb 26, 2016 at 18:26 | comment | added | machineghost | 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. | |
| Feb 26, 2016 at 18:23 | comment | added | machineghost | 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. | |
| Feb 26, 2016 at 18:18 | comment | added | MelBurslan | 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 | |
| Feb 26, 2016 at 18:18 | comment | added | terdon♦ | 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? | |
| Feb 26, 2016 at 18:11 | review | First posts | |||
| Feb 26, 2016 at 18:15 | |||||
| Feb 26, 2016 at 18:10 | history | asked | machineghost | CC BY-SA 3.0 |