This ignores the following warning:
warning: In POSIX sh, string replacement is undefined. [SC3060]
As string replacements are supported by ash and we are only going to use
ash.
This allows us to use something short like ${QUERY_STRING//+/ } to
replace all '+' to a whitespace in an URL or to make an ${IFNAME//-/_}
UCI compatible in the future, for example. Instead of needing to use
something long like "echo ${IFNAME} | tr '-' '_'.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
The following features are available in Busybox ash, so we don't need to
warn about them for runtime scripts:
- local keyword
- echo -n / -e
- String indexing
These warnings are new in shellcheck 0.7.2, which would otherwise fail
for various scripts.