diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-31 05:27:09 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-31 05:27:09 +0200 |
commit | 75481d363454a3e0640a5bd0f78d2cc4403e6235 (patch) | |
tree | a003f48db7a7ecc12736a0ec3c711424f7d64a6d /shell/hush_test | |
parent | bf1c344dfdc6f38ad6aa81c10b7b050e0dfc5d96 (diff) |
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')
-rw-r--r-- | shell/hush_test/hush-misc/func_prio_over_builtins.right | 5 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/func_prio_over_builtins.tests | 5 |
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 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` |