mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
test for alias expansion in command substitution
This commit is contained in:
parent
3b32abafdb
commit
aaa19267c2
|
@ -1,5 +1,7 @@
|
|||
2015-01-10 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* unposted: Test/C04funcdef.ztst: test for the foregoing
|
||||
|
||||
* 34220: Src/input.c: new $(...) parsing didn't back up over
|
||||
alias expansions.
|
||||
|
||||
|
|
|
@ -271,6 +271,7 @@
|
|||
>OK
|
||||
>ignorebraces is off
|
||||
>ignorebraces is still on here
|
||||
#` (matching error message for editors parsing the file)
|
||||
|
||||
# lsfoo should not be expanded as an anonymous function argument
|
||||
alias lsfoo='This is not ls.'
|
||||
|
@ -283,6 +284,17 @@
|
|||
0:Simple anonymous function should not simplify enclosing pipeline
|
||||
>foo
|
||||
|
||||
alias fooalias=barexpansion
|
||||
funcwithalias() { echo $(fooalias); }
|
||||
functions funcwithalias
|
||||
barexpansion() { print This is the correct output.; }
|
||||
funcwithalias
|
||||
0:Alias expanded in command substitution does not appear expanded in text
|
||||
>funcwithalias () {
|
||||
> echo $(fooalias)
|
||||
>}
|
||||
>This is the correct output.
|
||||
|
||||
%clean
|
||||
|
||||
rm -f file.in file.out
|
||||
|
|
Loading…
Reference in a new issue