{"id":6393,"date":"2020-09-08T15:39:34","date_gmt":"2020-09-08T12:39:34","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6393"},"modified":"2020-09-08T15:39:34","modified_gmt":"2020-09-08T12:39:34","slug":"a-rhs-regular-expression-should-always-be-unquoted-since-bash-3-2-at-least","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/09\/08\/a-rhs-regular-expression-should-always-be-unquoted-since-bash-3-2-at-least\/","title":{"rendered":"A RHS regular expression should always be unquoted (since Bash 3.2 at least)"},"content":{"rendered":"<p>&#8221;Except that you do need double quotes where a pattern or regular expression is expected: on the right-hand side of <code>=<\/code> or <code>==<\/code> or <code>!=<\/code> or <code>=~<\/code>.&#8221; Perhaps I&#8217;m misunderstanding this, but <a href=\"https:\/\/mywiki.wooledge.org\/BashGuide\/Patterns#Regular_Expressions-1\">AFAIK<\/a>, a RHS regular expression (i.e. after <code>=~<\/code>) should always be unquoted (since Bash 3.2 at least).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Perhaps I&#8217;m misunderstanding this, but AFAIK, a RHS regular expression (i.e. after =~) should always be unquoted (since Bash 3.2 at least).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3922],"tags":[9864],"class_list":["post-6393","post","type-post","status-publish","format-standard","hentry","category-aiheeton","tag-bash","sijainti-stack-exchange"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6393","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=6393"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6393\/revisions"}],"predecessor-version":[{"id":6394,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6393\/revisions\/6394"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}