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
Recent Comments