Skip to content

Commit

Permalink
[spec/alias] Turn on expand_alias in bash in a couple test cases.
Browse files Browse the repository at this point in the history
These were overlooked.
  • Loading branch information
Andy Chu committed Jan 18, 2020
1 parent 8fd0184 commit 4a6cc48
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec/alias.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -345,30 +345,27 @@ hello outside
## END

#### alias with redirects works
shopt -s expand_aliases
alias e_=echo
>$TMP/alias1.txt e_ 1
e_ >$TMP/alias2.txt 2
e_ 3 >$TMP/alias3.txt
cat $TMP/alias1.txt $TMP/alias2.txt $TMP/alias3.txt
## BUG bash stdout-json: ""
## STDOUT:
1
2
3
## END

#### alias with environment bindings works
shopt -s expand_aliases
alias p_=printenv.py
FOO=1 printenv.py FOO
FOO=2 p_ FOO
## STDOUT:
1
2
## END
## BUG bash status: 127
## BUG bash STDOUT:
1
## END

#### alias with line continuation in the middle
shopt -s expand_aliases
Expand Down

0 comments on commit 4a6cc48

Please sign in to comment.