hush: add support for ${var/pattern/repl}, conditional on bash compat
authorDenys Vlasenko <dvlasenk@redhat.com>
Sun, 5 Sep 2010 12:45:38 +0000 (14:45 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Sun, 5 Sep 2010 12:47:58 +0000 (14:47 +0200)
commit36f774a0cd2bf8dd72b192aab93831c5ac0c58f0
treeafa0b3d247e4dd163b89b7b61f4e3e0f3143b102
parent701e127f7d892909a58c6f3333e23588ccef9e22
hush: add support for ${var/pattern/repl}, conditional on bash compat

function                                             old     new   delta
expand_vars_to_list                                 2386    2833    +447
expand_string_to_string                               69     110     +41
parse_dollar                                         681     721     +40
hush_main                                            963     945     -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 528/-18)           Total: 510 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
12 files changed:
shell/ash_test/ash-vars/var_bash3.tests
shell/hush.c
shell/hush_test/hush-vars/var_bash1.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash1.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_bash2.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash2.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_bash3.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash3.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_bash4.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash4.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_bash5.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash5.tests [new file with mode: 0755]