From 75481d363454a3e0640a5bd0f78d2cc4403e6235 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 31 Jul 2017 05:27:09 +0200 Subject: 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 --- shell/hush_test/hush-misc/func_prio_over_builtins.right | 5 +++++ shell/hush_test/hush-misc/func_prio_over_builtins.tests | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 shell/hush_test/hush-misc/func_prio_over_builtins.right create mode 100755 shell/hush_test/hush-misc/func_prio_over_builtins.tests (limited to 'shell/hush_test') 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 000000000..54e56dff4 --- /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 000000000..4f71bfda0 --- /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` -- cgit v1.2.3