diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-12-07 10:09:34 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-12-07 10:09:40 +0100 |
commit | 61b82a81751625b6bed81b9e0a281c5734e19c10 (patch) | |
tree | f233625e2ba08c2625846c59bfebeaec0e096398 /src | |
parent | 89ea2b3809352120343aabb4da8cb7b1fcdde485 (diff) | |
parent | d6d402bd2b8211e9e111acae433ca4e3cfd8d370 (diff) | |
download | bitcoin-61b82a81751625b6bed81b9e0a281c5734e19c10.tar.xz |
Merge bitcoin/bitcoin#23593: build: remove x-prefix's from comparisons
d6d402bd2b8211e9e111acae433ca4e3cfd8d370 build: remove x-prefix comparisons (fanquake)
Pull request description:
Very old shells suffered from bugs which meant that prefixing variables
with an "x" to ensure that the lefthand side of a comparison always
started with an alphanumeric character was needed. Modern shells don't
suffer from this issue (i.e Bash was fixed in 1996).
In any case, we've already got unprefixed checks used in our codebase, i.e
https://github.com/bitcoin/bitcoin/blob/681b25e3cd7d084f642693152322ed9a40f33ba0/configure.ac#L292
and have libs (in depends) that also use unprefixed comparisons in their
configure scripts.
I think it's time that we consolidate on not using the x-prefix workaround.
At best it's mostly just confusing. Could simplify some of these checks
further in future.
More info:
https://github.com/koalaman/shellcheck/wiki/SC2268
https://www.vidarholen.net/contents/blog/?p=1035
ACKs for top commit:
MarcoFalke:
Concept ACK d6d402bd2b8211e9e111acae433ca4e3cfd8d370
Tree-SHA512: 70030d61dcdb5b009823d83d73204627de53d2f628d8d6478e8e16804ac09f6bbdc53cbb1a6fb2085ebfe1a694b576e46ff381fb980cf667fab4bbadc79587d7
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions