[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Substring replacement in ash doesn't slashes
From: Rafał Miłecki <zajec5 () gmail ! com>
Date: 2017-12-13 8:54:06
Message-ID: CACna6ryFkxwkd7b1HzmfNCwxZYPGjU6FvpiQEn8d=_mQX1ei3w () mail ! gmail ! com
[Download RAW message or body]
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ł
_______________________________________________
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