Not all commands under Windows use reasonable exit status values.
I suggest you generate cases that work and fail and see what values that particular compiler uses for exit values (what ends up in $?) for the different cases to see if you can figure out how to determine success or failure from $?.
- tye (but my friends call me "Tye")In reply to (tye)Re: Does $? work in NT?
by tye
in thread Does $? work in NT?
by ginju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |