add more alias unit tests

A recent regression to the `alias` command points out the need for more
unit tests of its behavior. I also decided to use it as an opportunity
to normalize the output of just `alias` to list aliases.
This commit is contained in:
Kurtis Rader
2017-07-15 17:36:36 -07:00
parent 98449fec51
commit f2c8e73891
4 changed files with 17 additions and 5 deletions

View File

@@ -1,2 +1,5 @@
ran foo
foo ran
# bare `alias` should list the aliases we have created and nothing else
alias a-2 'echo "hello there"'
alias my_alias 'foo; and echo foo ran'