
{"id":7380,"date":"2012-06-11T14:25:58","date_gmt":"2012-06-11T14:25:58","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7380"},"modified":"2012-06-11T14:25:58","modified_gmt":"2012-06-11T14:25:58","slug":"accident-in-experiments-ls-a","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/06\/11\/accident-in-experiments-ls-a\/","title":{"rendered":"accident in experiments : ls !a and ls ?a"},"content":{"rendered":"<h4><u>accident in experiments <\/u><\/h4>\n<pre>\n$ 4.2.20 8 507---&gt; cat .bashrc\n#export PS1=\"[ 33[0;31m] $ V # ! \"\nexport PS1=\"$ V # !---&gt; \"\n\nshellp()\n{\npre=: post=:\nprintf \"$pre%s$postn\" \"$@\"\n}\n\n$ 4.2.20 9 508---&gt; shopt -u extglob\n<\/pre>\n<h6><u>accident fixme<\/u><\/h6>\n<pre>\n$ 4.2.20 10 509---&gt; ls ?a\nNetworkSystemAdministration.pdf\n$ 4.2.20 26 525---&gt; pwd\n\/home\/jeffrin\n$ 4.2.20 27 526---&gt; cd sa\n$ 4.2.20 28 527---&gt; pwd\n\/home\/jeffrin\/sa\n$ 4.2.20 29 528---&gt; ls\nNetworkSystemAdministration.pdf\n$ 4.2.20 30 529---&gt; ls ?a\nls: cannot access ?a: No such file or directory\n$ 4.2.20 31 530---&gt; cd ..\n$ 4.2.20 32 531---&gt; pwd\n\/home\/jeffrin\n$ 4.2.20 33 532---&gt; ls ?a\nNetworkSystemAdministration.pdf\n$ 4.2.20 34 533---&gt;\n\n<\/pre>\n<pre>\n$ 4.2.20 11 510---&gt; ls ?b\nbb\n$ 4.2.20 12 511---&gt; ls ?c\nls: cannot access ?c: No such file or directory\n$ 4.2.20 13 512---&gt; ls ?t\nrt\n$ 4.2.20 14 513---&gt; ls ?a\nNetworkSystemAdministration.pdf\n$ 4.2.20 15 514---&gt; shopt -s extglob\n$ 4.2.20 16 515---&gt; ls ?a\nNetworkSystemAdministration.pdf\n<\/pre>\n<h6><u>accident<\/u><\/h6>\n<pre>\n$ 4.2.20 17 516---&gt; ls !a\nls apropos \"device driver\"\nls: cannot access apropos: No such file or directory\nls: cannot access device driver: No such file or directory\n$ 4.2.20 18 517---&gt; shopt -u extglob\n$ 4.2.20 19 518---&gt; ls !a\nls apropos \"device driver\"\nls: cannot access apropos: No such file or directory\nls: cannot access device driver: No such file or directory\n$ 4.2.20 20 519---&gt;\n<u> ! is a history expansion character in GNU bash<\/u>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>accident in experiments $ 4.2.20 8 507&#8212;&gt; cat .bashrc #export PS1=&#8221;[ 33[0;31m] $ V # ! &#8221; export PS1=&#8221;$ V # !&#8212;&gt; &#8221; shellp() { pre=: post=: printf &#8220;$pre%s$postn&#8221; &#8220;$@&#8221; } $ 4.2.20 9 508&#8212;&gt; shopt -u extglob accident fixme $ 4.2.20 10 509&#8212;&gt; ls ?a NetworkSystemAdministration.pdf $ 4.2.20 26 525&#8212;&gt; pwd \/home\/jeffrin $ 4.2.20 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/06\/11\/accident-in-experiments-ls-a\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;accident in experiments : ls !a and ls ?a&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7380"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=7380"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7380\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}