]>
Commit | Line | Data |
---|---|---|
495aee44 CR |
1 | shopt -s expand_aliases |
2 | ||
3 | alias foo=echo | |
4 | ||
5 | < /dev/null foo bar | |
6 | ||
7 | < /dev/null x=value | |
8 | echo $x | |
9 | ||
10 | < /dev/null x=newvalue foo bar | |
11 | echo $x | |
12 | ||
13 | # problem reported by Vincent Lefevre | |
14 | alias a="echo OK >&2" | |
15 | a | |
16 | > /dev/null a | |
17 | ||
18 | ${THIS_SH} -c 'shopt -s expand_aliases; alias a="echo OK >&2" | |
19 | a | |
20 | > /dev/null a' |