This repository has been archived by the owner on Feb 16, 2025. It is now read-only.
Shell script setup.sh not POSIX compliant #713
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
While it's unclear if we necessarily need to be POSIX compliant, it seems it would be a good idea to be so, especially as the setup script currently fails on Chromebooks due to this.
The major issue I've discovered thus far is
[[
vs[
, although a fix is a bit more complicated than just replacing[
with[[
, as the[[
adds some secret sauce, allowing easier use of certain comparators.Initial error:
The errors at line 32, 35, and 38 denote the lack of the support for
[[
, more information on this here:https://www.baeldung.com/linux/bash-single-vs-double-brackets
The error at line 45,
read: arg count
demonstrates another posix compliance issue, in which a variable has to be specified to receive the input, even if it's not going to be used. More on this here:https://unix.stackexchange.com/questions/581409/error-sh-1-read-arg-count
The text was updated successfully, but these errors were encountered: