If a run the watch
command containing an alias, it will not expand the alias. I have tried both with single quote and double quotes, in fact given the following alias:
# alias ll
alias ll='ls -l --color=tty'
The following command will fail
# watch ll
sh: ll: command not found
Shouldn't command line expansion work in this case?
"watch -x bash -i -c ll"
(the "-x" tells watch not to use it's own "sh -c" to execute the given command.) But it successfully runs 'll' once, then backgrounds and stops the process. I don't know why.