projects
/
platform
/
upstream
/
bash.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bash-4.2 distribution sources and documentation
[platform/upstream/bash.git]
/
tests
/
alias1.sub
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'