Verified Commit 22911435 authored by Olliver Schinagl's avatar Olliver Schinagl
Browse files

CODINGSTYLE: Drop non-posix parameter extensions

While the non-posix substring expansions and replacement expansions are
in use in portage already; they currently do not always work properly.

.githooks/pre-commit: 28: testing/gcc-cross-embedded/APKBUILD: Bad substitution

where line 28 reads:

So best to avoid this construct when it doesn't even work all the time.

A good replacement is:
	targetnorm="$(echo "${target}" | tr - _)"

which is posix compliant and works.
Signed-off-by: Olliver Schinagl's avatarOlliver Schinagl <>
parent 6a46d5bc
Pipeline #40376 passed with stages
in 1 minute and 35 seconds