This command works perfectly fine when executed on bash.
sh < (curl -sSL https://myurl.com/install.sh)
It's an install script with some prompts that require y or n answers. Finally it installs a couple of programs, creates a directory, downloads some file and runs some nodejs program.
However, when running on zsh on Ubuntu it spits out:
zsh: number expected
What would be the correct syntax to run this script on zsh, be able to answer the questions inside the script and let it do its thing?
CodePudding user response:
Did you try to do:
$ bash < (curl -sSL https://myurl.com/install.sh)
CodePudding user response:
As pointed by @shellter and @zaidhaan-hussain the problem was my wrong syntax.
The code should be
sh <(curl -sSL https://myurl.com/install.sh)
without space between the "<" and "(". That's the correct syntax for process substitution.
I'll leave it here, in case someone finds it useful in the future!