diff options
author | Denys Vlasenko | 2021-07-26 15:29:13 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-07-26 15:32:46 +0200 |
commit | b278d82c61ab5125b5c7e350b264c1f3d52d682b (patch) | |
tree | f2c0a2c2bd630b22f7eebee1d63eb810e480b4e5 /shell/hush_test/hush-vars | |
parent | 05c5d745f7b14e265144489b7809a3d6dbbadec6 (diff) | |
download | busybox-b278d82c61ab5125b5c7e350b264c1f3d52d682b.zip busybox-b278d82c61ab5125b5c7e350b264c1f3d52d682b.tar.gz |
hush: implement $'str' bashism
function old new delta
parse_dollar_squote - 441 +441
encode_then_expand_vararg 359 380 +21
parse_stream 2252 2271 +19
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 481/0) Total: 481 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/var_bash7.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_bash7.tests | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_bash7.right b/shell/hush_test/hush-vars/var_bash7.right new file mode 100644 index 0000000..223b783 --- /dev/null +++ b/shell/hush_test/hush-vars/var_bash7.right @@ -0,0 +1 @@ +B diff --git a/shell/hush_test/hush-vars/var_bash7.tests b/shell/hush_test/hush-vars/var_bash7.tests new file mode 100755 index 0000000..c4ce03f --- /dev/null +++ b/shell/hush_test/hush-vars/var_bash7.tests @@ -0,0 +1 @@ +x=AB; echo "${x#$'\x41'}" |