CentOS-6.6 - wget $? returns 0 when invalid protocol used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxxxxx
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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux