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

resty in bash script after upgrade to version 3 fails #87

Open broerman opened 5 years ago

broerman commented 5 years ago

After upgrading to newest resty ( version 3 ) my bash scripts stopped to work.

I found that aliases for example GET=resty-get where not resolved. I tested with type -a GET.

For me adding a bash option solved the problem.

#!/bin/bash
shopt -s expand_aliases

See also on: [https://unix.stackexchange.com/questions/1496/why-doesnt-my-bash-script-recognize-aliases]

Bernd