Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Why the following one-liner gives error "bash: ech: command not found" when run first time?
bash: ech: command not found
alias ech="echo foo "; alias text="bar baz"; ech text
However, if each command is run in a separate line, everything works from the first time.