{"id":5656,"date":"2018-04-20T14:58:32","date_gmt":"2018-04-20T11:58:32","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5656"},"modified":"2018-04-20T14:58:32","modified_gmt":"2018-04-20T11:58:32","slug":"wget-log-file-created-despite-q-when-run-in-background-with","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/04\/20\/wget-log-file-created-despite-q-when-run-in-background-with\/","title":{"rendered":"wget-log file created despite -q when run in background with &amp;"},"content":{"rendered":"<p>== Steps to reproduce ==<br \/>\n`wget -q https:\/\/www.google.com\/ &amp;`<\/p>\n<p>== What happens ==<br \/>\nwget says it&#8217;s &#8221;Redirecting output to &#8217;wget-log'&#8221; and creates an empty wget-log file in the current directory.<\/p>\n<p>== What I expect to happen ==<br \/>\nNo wget-log file to be created.<\/p>\n<p>== Details ==<br \/>\nWget has a -b (&#8211;background) option, for which the man page says: &#8221;If no output file is specified via the -o, output is redirected to wget-log.&#8221; There&#8217;s also the -q (&#8211;quiet) option, for which the man page says: &#8221;Turn off Wget&#8217;s output.&#8221;<\/p>\n<p>When both are given, wget goes to background, and no wget-log gets created, as expected.<\/p>\n<p>When only -b is given, wget goes to background, and creates wget-log, also as expected.<\/p>\n<p>When only -q is given, wget runs in the foreground, and no wget-log is created, still as expected.<\/p>\n<p>When only -q is given, but &amp; is added to the end of the command line, wget goes to background, but also creates wget-log, which I find unexpected (and inconsistent).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>`wget -q $URL &amp;` says it&#8217;s &#8221;Redirecting output to &#8217;wget-log'&#8221; and creates an empty wget-log file in the current directory. I find this unexpected.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14080],"class_list":["post-5656","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-wget","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5656"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5656\/revisions"}],"predecessor-version":[{"id":5657,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5656\/revisions\/5657"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}