Substring replacement in ash doesn't slashes

Rafał Miłecki zajec5 at gmail.com
Wed Dec 13 08:54:06 UTC 2017


I wanted to replace all slashes in my string with some other char.

Example:
dir=foo/bar/qux
echo "${dir//\//-}"

It works well in GNU bash (it produces "foo-bar-qux"), but doesn't in ash.

-- 
Rafał


More information about the busybox mailing list