Why doesn\'t the following work?
$ alias sayHello=\'/bin/echo \"Hello world!\"\' $ sayHello Hello world! $ nohup sayHello nohup: appending output to `n
If you look at the Aliases section of the Bash manual, it says
The first word of each simple command, if unquoted, is checked to see if it has an alias.
Unfortunately, it doesn't seem like bash has anything like zsh's global aliases, which are expanded in any position.
bash
zsh