From aaa19267c29afdd4ef558264803a6a65120d2a12 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sat, 10 Jan 2015 20:36:57 +0000
Subject: test for alias expansion in command substitution
---
Test/C04funcdef.ztst | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'Test')
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
--
cgit 1.4.1