{"id":42023,"date":"2021-08-03T15:08:58","date_gmt":"2021-08-03T15:08:58","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=42023"},"modified":"2021-08-03T15:09:00","modified_gmt":"2021-08-03T15:09:00","slug":"windows-cmd-double-quotes-vs-single-quotes","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/windows-cmd-double-quotes-vs-single-quotes\/","title":{"rendered":"Windows: cmd: double quotes vs single quotes"},"content":{"rendered":"\n<h2>Self-tutoring about the Windows command prompt: the tutor mentions its treatment of double vs single quotes.<\/h2>\n<p>\nIn many computer languages, double or single quotes are interchangeable or else give similar effect in many situations. Such is not the case with the Windows command prompt.<\/p>\n<p>\nIn my experience, Windows command prompt, aka cmd, treats double quotes the way you&#8217;d expect: they enclose a string. Single quotes, however, don&#8217;t seem to have that effect. I&#8217;ve read that cmd treats single quotes as alphanumeric characters rather than special purpose ones: perhaps, to it, &#8216;hello&#8217; is a seven-character string in the way that 9hello_ is.<\/p>\n<p>So, in my experience, with cmd, when I think I might need quotes, I use double, not single. I hope to talk even more about this soon:)<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/51080215\/differences-between-single-and-double-quotes-in-cmd\/51090074\">stackoverflow.com<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about the Windows command prompt: the tutor mentions its treatment of double vs single quotes. In many computer languages, double or single quotes are interchangeable or else give similar effect in many situations. Such is not the case with &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/windows-cmd-double-quotes-vs-single-quotes\/\"> <span class=\"screen-reader-text\">Windows: cmd: double quotes vs single quotes<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2959],"tags":[],"class_list":["post-42023","post","type-post","status-publish","format-standard","hentry","category-command-prompt"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=42023"}],"version-history":[{"count":4,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42023\/revisions"}],"predecessor-version":[{"id":42027,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42023\/revisions\/42027"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=42023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=42023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=42023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}