James B. Byrne
2015-Apr-22 13:53 UTC
[CentOS] CentOS-6.6 - wget $? returns 0 when invalid protocol used
Can someone enlighten me why this: wget --quiet --no-check-certificate ttps://flub.githubusercontent.com/jodrell/jwhois/master/example/jwhois.conf ; echo $? returns this: 0 When wget --no-quiet says this: wget --no-quiet --no-check-certificate ttps://flub.githubusercontent.com/jodrell/jwhois/master/example/jwhois.conf ; echo $? ttps://flub.githubusercontent.com/jodrell/jwhois/master/example/jwhois.conf: Unsupported scheme `ttps'. 0 Is not an unsupported scheme an error in much the same fashion as an invalid URI? Should it not return an non-zero value in '$?' ? wget https://flub.githubusercontent.com/jodrell/jwhois/master/example/jwhois.conf ; echo $? --2015-04-22 09:50:48-- https://flub.githubusercontent.com/jodrell/jwhois/master/example/jwhois.conf Resolving flub.githubusercontent.com... 199.27.75.133 Connecting to flub.githubusercontent.com|199.27.75.133|:443... connected. HTTP request sent, awaiting response... 500 Domain Not Found 2015-04-22 09:50:49 ERROR 500: Domain Not Found. 8 -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3