Lol... I copied and pasted your example and could immediately reproduce the problem. It turned out that your '--' is not ASCII double-minus but some kind of UTF-8 encoded characters that look the same.
Remove all minuses and type them again. That should do it. Regards, Tim Am Donnerstag, 28. April 2016, 06:21:01 schrieb A: > Greetings, > > I copied the below function into my .bashrc, sourced it and proceeded to > attempt to use it. > > You can see the output below before I interrupted it. Please advise > where I've gone wrong. > > Thank you > > crwl() { > wget --tries=inf --timestamping --recursive --level=inf --convert-links > --no-parent ‐‐accept "*.zip" ‐‐execute robots=off > ‐‐exclude-directories=/profile,/blog "$@" > } > > $ crwl https://premium.wpmudev.org/download > --2016-04-28 06:03:53-- http://xn--accept-9f0ca/ > Resolving ‐‐accept (xn--accept-9f0ca)... 198.105.254.228, 198.105.244.228 > Connecting to ‐‐accept (xn--accept-9f0ca)|198.105.254.228|:80... connected. > HTTP request sent, awaiting response... 301 Moved Permanently > Location: http://localhost [following] > --2016-04-28 06:03:53-- http://localhost/ > Resolving localhost (localhost)... ::1, 127.0.0.1 > Connecting to localhost (localhost)|::1|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 11510 (11K) [text/html] > Server file no newer than local file ‘xn--accept-9f0ca/index.html’ -- > not retrieving. > > --2016-04-28 06:03:53-- http://*.zip/ > Resolving *.zip (*.zip)... failed: Name or service not known. > wget: unable to resolve host address ‘*.zip’ > --2016-04-28 06:03:53-- http://xn--execute-406ca/ > Resolving ‐‐execute (xn--execute-406ca)... 198.105.254.228, 198.105.244.228 > Connecting to ‐‐execute (xn--execute-406ca)|198.105.254.228|:80... > connected. > HTTP request sent, awaiting response... 301 Moved Permanently > Location: http://localhost [following] > --2016-04-28 06:03:53-- http://localhost/ > Connecting to localhost (localhost)|::1|:80... connected. > HTTP request sent, awaiting response... 200 OK > Length: 11510 (11K) [text/html] > Server file no newer than local file ‘xn--execute-406ca/index.html’ -- > not retrieving. > > --2016-04-28 06:03:53-- http://robots=off/ > Resolving robots=off (robots=off)... failed: Name or service not known. > wget: unable to resolve host address ‘robots=off’ > idn_encode failed (3): ‘Non-digit/letter/hyphen in input’ > idn_encode failed (3): ‘Non-digit/letter/hyphen in input’ > --2016-04-28 06:03:53-- > http://%E2%80%90%E2%80%90exclude-directories=/profile,/blog > Resolving ‐‐exclude-directories= (‐‐exclude-directories=)... failed: > Name or service not known. > wget: unable to resolve host address ‘‐‐exclude-directories=’ > --2016-04-28 06:03:53-- https://premium.wpmudev.org/download > Resolving premium.wpmudev.org (premium.wpmudev.org)... ^C
signature.asc
Description: This is a digitally signed message part.