Open josdotso opened 8 years ago
Hey @josdotso, sorry for the late answer
the failure is normal. The resty command loock if XDG_CONFIG_HOME is set to something. Since it's not, the set -u will cause failure you are having.
@josdotso Anything else? Shall i close the issue?
Since resty
is expected to be run source
d, it would be nice if it could run in a “strict mode”. You can use ${XDG_CONFIG_HOME:-}
syntax to make it work.
Hi.
I was hoping to use resty in a REST API test suite written in bash, but I'm finding it's not set up to be run with
set -u
(nounset) (at least).Steps to repeat:
If I put the
set -o nounset
before the source, then the resty command at the end of the source file fails (e.g.resty http://localhost
). If I put theset -o nounset
after source but before the GET line, I get:Thoughts?