]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/alias1.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / alias1.sub
CommitLineData
495aee44
CR
1shopt -s expand_aliases
2
3alias foo=echo
4
5< /dev/null foo bar
6
7< /dev/null x=value
8echo $x
9
10< /dev/null x=newvalue foo bar
11echo $x
12
13# problem reported by Vincent Lefevre
14alias a="echo OK >&2"
15a
16> /dev/null a
17
18${THIS_SH} -c 'shopt -s expand_aliases; alias a="echo OK >&2"
19 a
20 > /dev/null a'