Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Should return exit status on error #193

Closed
sabcio opened this Issue · 1 comment

2 participants

@sabcio

Hi,

I found this bug while using Thor that can be reproduced with bundler:

$ bundle exec rake && echo $?
Could not locate Gemfile
$ echo $?
10

The proper output in a unix environment should be

$ bundle exec rake && echo $?
Could not locate Gemfile
10

It seems that Thor ignores everything before the &&

@eventualbuddha
Collaborator

I may be misunderstanding you, but at least in bash the example you gave wont work. The && operator works by only running the rhs if the exit status of the lhs was 0, so your echo will never be called. Please reopen if I've misunderstood what you're saying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.