use new logmsg and set --show in tests

This commit is contained in:
Kurtis Rader 2017-08-04 11:01:39 -07:00
parent d4fb75e9f3
commit 0c69e99d8b
3 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,6 @@
####################
# Avoid regressions of issue #3860 wherein the first word of the alias ends with a semicolon
####################
# Bare `alias` should list the aliases we have created and nothing else

View File

@ -1,5 +1,4 @@
# Avoid regressions of issue #3860 wherein the first word of the alias ends
# with a semicolon.
logmsg Avoid regressions of issue \#3860 wherein the first word of the alias ends with a semicolon
function foo
echo ran foo
end
@ -8,7 +7,7 @@ my_alias
alias a-2='echo "hello there"'
echo '# bare `alias` should list the aliases we have created and nothing else'
logmsg Bare `alias` should list the aliases we have created and nothing else
# We have to exclude two aliases because they're an artifact of the unit test
# framework and we can't predict the definition.
alias | grep -Ev '^alias (fish_indent|fish_key_reader) '

View File

@ -1,5 +1,10 @@
####################
# Avoid regressions of issue #3860 wherein the first word of the alias ends with a semicolon
ran foo
foo ran
# bare `alias` should list the aliases we have created and nothing else
####################
# 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'