mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-23 14:10:50 -05:00
`floci az env` printed the semicolon-separated Azure connection string unquoted, so `eval $(floci az env)` set only AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=http and ran the remaining segments as commands — `az` then reported "Invalid connection string". `floci env` and `floci gcp env` carried a byte-identical copy of the same unquoted emitter (their values are `;`-free URLs today, so nobody hit it), and the aws.cli.endpoint / az.cli.connection-string doctor checks suggested export lines with the same flaw. Extract the correct emitter that `floci oci env` already had into io.floci.cli.output.ShellExport and use it everywhere: values are single quoted with per-shell escaping for bash, fish, and PowerShell, so `;`, `$`, backticks, and quotes can neither break nor inject through `eval`. OciEnvFormatTest becomes ShellExportTest, keeping its four assertions and adding the connection-string regression from the issue. Closes #18