summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/func_bash1.tests
diff options
context:
space:
mode:
authorRon Yorston2021-07-10 11:00:04 +0100
committerDenys Vlasenko2021-07-13 14:42:20 +0200
commit2759201401cf87a9a8621edd9e5f44dfe838407c (patch)
treeca9db39df419b242c5ca1981c200dfcee6ec4e35 /shell/ash_test/ash-misc/func_bash1.tests
parent95ac4a48f17c2fdd2a10524c0b399e3be72d8f42 (diff)
downloadbusybox-2759201401cf87a9a8621edd9e5f44dfe838407c.zip
busybox-2759201401cf87a9a8621edd9e5f44dfe838407c.tar.gz
vi: allow delimiter in ':s' to be escaped
When regular expressions are allowed in search commands it becomes possible to escape the delimiter in search/replace commands. For example, this command will replace '/abc' with '/abc/': :s/\/abc/\/abc\//g The code to split the command into 'find' and 'replace' strings should allow for this possibility. VI_REGEX_SEARCH isn't enabled by default. When it is: function old new delta strchr_backslash - 38 +38 colon 4378 4373 -5 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 38/-5) Total: 33 bytes Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc/func_bash1.tests')
0 files changed, 0 insertions, 0 deletions