micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).
MIT License
2.65k stars 143 forks source link

Syntax error: "(" unexpected when used in a shell script #41

Closed jeremyfuksa closed 7 years ago

jeremyfuksa commented 11 years ago

I am using resty in a shell script, and any time I call it, I get the following:

/usr/local/bin/resty: 16: /usr/local/bin/resty: Syntax error: "(" unexpected

Yet, I can enter the same commands on the command line and they work as expected.

Why would this be?

ex: resty https://api.parse.com/1/functions/

mkonecny commented 9 years ago

Would be helpful if you posted the script.

AdrieanKhisbe commented 9 years ago

Hey @3rdmartini , could you provide us the script as @mkonecny suggest so that we can reproduce :) thanks

AdrieanKhisbe commented 7 years ago

closing due to no activity