79453230

Date: 2025-02-20 02:54:04
Score: 1.5
Natty:
Report link

I was not able to get either of the current 2 answers to work for me.

Thank you for the comment on the answer by @LéaGris from @Cas. That was the answer for me. Credit goes to @Cas for the parameter passing.

All of the other examples would quietly fail. Adding the -- solved it.

This question and its current answers are nearly 6 years old now in early 2025. Bash has seen some updates. I am currently using GNU bash, version 5.2.15(1) on Debian 12.9. I am also using a newer syntax for passing the script to bash.

bash < <(wget -qO - https://example.com/script.sh) -s -- <parameter>

...where <parameter> is any parameter or parameters you would normally pass to the script locally.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @LéaGris
  • User mentioned (0): @Cas
  • User mentioned (0): @Cas
  • Low reputation (1):
Posted by: theOtherLukeN