summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-31 05:27:09 +0200
committerDenys Vlasenko2017-07-31 05:27:09 +0200
commit75481d363454a3e0640a5bd0f78d2cc4403e6235 (patch)
treea003f48db7a7ecc12736a0ec3c711424f7d64a6d /shell/hush_test/hush-misc
parentbf1c344dfdc6f38ad6aa81c10b7b050e0dfc5d96 (diff)
downloadbusybox-75481d363454a3e0640a5bd0f78d2cc4403e6235.zip
busybox-75481d363454a3e0640a5bd0f78d2cc4403e6235.tar.gz
hush: functions have priority over builtins (!)
function old new delta pseudo_exec_argv 291 305 +14 run_pipe 1560 1555 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 14/-5) Total: 9 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc')
-rw-r--r--shell/hush_test/hush-misc/func_prio_over_builtins.right5
-rwxr-xr-xshell/hush_test/hush-misc/func_prio_over_builtins.tests5
2 files changed, 10 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/func_prio_over_builtins.right b/shell/hush_test/hush-misc/func_prio_over_builtins.right
new file mode 100644
index 0000000..54e56df
--- /dev/null
+++ b/shell/hush_test/hush-misc/func_prio_over_builtins.right
@@ -0,0 +1,5 @@
+YES
+YES
+YES
+YES
+Ok:YES
diff --git a/shell/hush_test/hush-misc/func_prio_over_builtins.tests b/shell/hush_test/hush-misc/func_prio_over_builtins.tests
new file mode 100755
index 0000000..4f71bfd
--- /dev/null
+++ b/shell/hush_test/hush-misc/func_prio_over_builtins.tests
@@ -0,0 +1,5 @@
+true() { echo YES >&2; }
+true
+true | true
+(true)
+echo Ok:`true 2>&1`