Open lionello opened 2 months ago
Do I understand correctly that it's because it's an old bash, but that the old bash is still the default?
Would it fix anything to pipe the output into sh
? I'm seeing that the GitHub and NATS CLIs both use that kind of install process:
curl -sS https://webi.sh/gh | sh
curl -sf https://binaries.nats.dev/nats-io/natscli/nats@latest | sh
If I remember correctly, there was a reason I didn't do that... but I can't remember what it was unfortunately.
Interesting. Just realizing that the Github installer uses this: https://webinstall.dev/
So far I've only personally had two reports of this, so this does break bash users, but there aren't that many (and we have other installers)
This still is the default "bash" on macOS Sonoma 14.6.1 (23G93)
https://stackoverflow.com/questions/32596123/why-source-command-doesnt-work-with-process-substitution-in-bash-3-2/32596626#32596626
Workarounds are to use
eval
orsource /dev/stdin <<<"$(…)"
.