micha/resty

resty in bash script after upgrade to version 3 fails

broerman opened this issue · 0 comments

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