[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Substring replacement in ash doesn't support slashes
From:       Arkadiusz Drabczyk <arkadiusz () drabczyk ! org>
Date:       2017-12-15 11:39:58
Message-ID: p10cae$j9q$1 () blaine ! gmane ! org
[Download RAW message or body]

On 2017-12-14, Ron Yorston <rmy@pobox.com> wrote:
> Rafał Miłecki wrote:
>>> dir=foo/bar/qux
>>> echo "${dir//\//-}"
>>>
>>> It works well in GNU bash (it produces "foo-bar-qux"), but doesn't in ash.

It works well in hush though:

$ ./busybox hush
/media/data/busybox/busybox $ dir=foo/bar/qux
/media/data/busybox/busybox $ echo "${dir//\//-}"
foo-bar-qux

The problem with ash has already been reported several times:

http://busybox.busybox.narkive.com/BMYLqcIc/ash-variable-substitution-quote-slash

As of today var_bash5.tests still fails:

$ cd ./shell/ash_test
$ ./run-all 2>&1 | grep -i fai
ash-glob/glob2.tests: fail
ash-misc/pipefail.tests: ok
ash-redir/redir_leak.tests: fail
ash-vars/var_bash5.tests: fail

-- 
Arkadiusz Drabczyk <arkadiusz@drabczyk.org>

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic