if anything bad happens, return non-zero

2003-11-17 Thread Dan Jacobson
$ wget --spider BAD_URL GOOD_URL; echo $? 0 $ wget --spider GOOD_URL BAD_URL; echo $? 1 I say they both should be 1. If anything bad happens, return 1 or some other non-zero value. By BAD, I mean a producer of e.g., ERROR 503: Service Unavailable. --spider or not, too. And stop making me have to

Re: if anything bad happens, return non-zero

2003-11-17 Thread Hrvoje Niksic
Dan Jacobson [EMAIL PROTECTED] writes: $ wget --spider BAD_URL GOOD_URL; echo $? 0 $ wget --spider GOOD_URL BAD_URL; echo $? 1 I say they both should be 1. If anything bad happens, return 1 or some other non-zero value. By BAD, I mean a producer of e.g., ERROR 503: Service Unavailable.

Re: if anything bad happens, return non-zero

2003-11-17 Thread Manfred Schwarb
$ wget --spider BAD_URL GOOD_URL; echo $? 0 $ wget --spider GOOD_URL BAD_URL; echo $? 1 I say they both should be 1. If anything bad happens, return 1 or some other non-zero value. I'm glad I'm not the only one to complain about this issue. I wasted a lot of time taiming my downloads just