sh script problem with capturing return code

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Wed Jan 9 20:37:39 UTC 2013


Lowell Gilbert <freebsd-questions-local at be-well.ilk.org> writes:

> and I think the problem you're having is that the second "echo $?"
> should be 2, although the others are correct at 0. Is that correct? 

It's not; ignore my example. The extra directory was under the ignored
directory, so it's testing the right properties. I think if I create the
new subdirectory under the other main directory, it would be right.


More information about the freebsd-questions mailing list