an apostrophe in the message bash parses before it decides not to print it

`${OPENAPI:?…}` only prints its word when the variable is unset, but bash
PARSES that word either way, and inside it a lone `'` opens a quote that never
closes: `unexpected EOF while looking for matching '`, at line 23, with OPENAPI
set and the branch not taken. The regeneration died on a message about how to
supply a value it already had.
This commit is contained in:
2026-08-08 11:54:56 -07:00
parent ad0e0b843a
commit 4dfc7cf737
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
set -euo pipefail
cd "$(dirname "$0")/.."
: "${OPENAPI:?the generator lives in hanzoai/openapi; hanzoai/ci's client lane sets OPENAPI, or point it at a checkout}"
: "${OPENAPI:?the generator lives in hanzoai/openapi; the ci client lane sets OPENAPI, or point it at a checkout}"
if [ -n "${SPEC:-}" ]; then set -- --spec "$SPEC" "$@"; fi
Generated
+2 -2
View File
@@ -1964,7 +1964,7 @@ wheels = [
[[package]]
name = "hanzo-tools-lsp"
version = "0.2.0"
version = "0.2.1"
source = { editable = "pkg/hanzo-tools-lsp" }
dependencies = [
{ name = "hanzo-tools" },
@@ -2250,7 +2250,7 @@ wheels = [
[[package]]
name = "hanzoai"
version = "3.2.0"
version = "3.2.2"
source = { editable = "." }
dependencies = [
{ name = "pydantic" },