On 2017-12-14, Ron Yorston <[email protected]> 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 <[email protected]>

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to