Hi
I am following an example in the documentation here.
* Use negative indexes to return the last entries in build list, e.g. [-5:-1] returns last five builds in list
This curl command:
curl --user usr1:password12 http://localhost:8085/rest/api/latest/result.json?expand=results[-5:-1].result
returns
curl: (3) [globbing] bad range specification in column 66
I have 37 results for this plan.
A simpler command using [0] also returns error
curl --user usr1:password12 http://localhost:8085/rest/api/latest/result.json?expand=results[0].result
[globbing] bad range in column 70.
I solved the problem with globbing error by using -g flag. However I only get the latest result.
results[0].result works as expected
results[-5:-1].result still returns the last result. Currently there are 38 results in my plan.