wget-dev
[Top][All Lists]
Advanced

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

wget2 | Exit code for missing domain is 0 but should be non-zero (#652)


From: Richard W.M. Jones (@rwmjones)
Subject: wget2 | Exit code for missing domain is 0 but should be non-zero (#652)
Date: Mon, 15 Jan 2024 08:59:23 +0000


Richard W_M_ Jones created an issue: 
https://gitlab.com/gnuwget/wget2/-/issues/652



The exit code when you try to download a missing / bogus domain is still `0`, 
but it should obviously not be zero.

```
$ wget http://nosuchdomainreallynodomain.abc -O /dev/null
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)
Failed to resolve 'nosuchdomainreallynodomain.abc' (Name or service not known)

                          [Files: 0  Bytes: 0  [0 B/s] Re]
$ echo $?
0
```

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/652
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]