diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-10 20:36:57 +0000 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-01-10 20:36:57 +0000 |
commit | aaa19267c29afdd4ef558264803a6a65120d2a12 (patch) | |
tree | 76a68e235a83d4bc745b2b387094e5875ec268f8 | |
parent | 3b32abafdb019cfb8f29908bc3d148e01518981d (diff) | |
download | zsh-aaa19267c29afdd4ef558264803a6a65120d2a12.tar.gz zsh-aaa19267c29afdd4ef558264803a6a65120d2a12.tar.xz zsh-aaa19267c29afdd4ef558264803a6a65120d2a12.zip |
test for alias expansion in command substitution
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Test/C04funcdef.ztst | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 83b90c0cc..605f58262 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 10491a229..74f881587 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -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 |