
{"id":7820,"date":"2012-10-24T11:36:21","date_gmt":"2012-10-24T11:36:21","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7820"},"modified":"2012-10-24T11:36:21","modified_gmt":"2012-10-24T11:36:21","slug":"7820-2","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/10\/24\/7820-2\/","title":{"rendered":"Bash   -a option"},"content":{"rendered":"<h4><u>GET THE HANG [ -a option ]<\/u><\/h4>\n<pre>\n$ 4.1.5 1 387---&gt; vim cond-a.sh\n$ 4.1.5 2 388---&gt; sh cond-a.sh\ncond-a.sh: 3: Syntax error: end of file unexpected (expecting \"then\")\n$ 4.1.5 3 389---&gt; vim cond-a.sh\n$ 4.1.5 4 390---&gt; sh cond-a.sh\ncond-a.sh: 4: Syntax error: end of file unexpected (expecting \"fi\")\n$ 4.1.5 5 391---&gt; vim cond-a.sh\n$ 4.1.5 6 392---&gt; sh cond-a.sh\n[: 4: -a: unexpected operator\n$ 4.1.5 7 393---&gt; vim cond-a.sh\n$ 4.1.5 8 394---&gt; sh cond-a.sh\nyes\n$ 4.1.5 9 395---&gt; ls a.out\nls: cannot access a.out: No such file or directory\n$ 4.1.5 10 396---&gt; pwd\n\/home\/jeffrin\n$ 4.1.5 11 397---&gt; vim cond-a.sh\n$ 4.1.5 12 398---&gt; sh cond-a.sh\nyes\n$ 4.1.5 13 399---&gt; vim cond-a.sh\n$ 4.1.5 14 400---&gt; cat cond-a.sh\nif [ test -a .\/a.out ]\nthen\necho yes\nfi\n$ 4.1.5 15 401---&gt; vim cond-a.sh\n$ 4.1.5 16 402---&gt; sh cond-a.sh\ntest: 1: -a: unexpected operator\ncond-a.sh: 5: 2: not found\n$ 4.1.5 17 403---&gt; vim cond-a.sh\n$ 4.1.5 18 404---&gt; sh cond-a.sh\ncond-a.sh: 5: 0: not found\n$ 4.1.5 19 405---&gt; &gt; a.out\n$ 4.1.5 20 406---&gt; sh cond-a.sh\ncond-a.sh: 5: 0: not found\n$ 4.1.5 21 407---&gt; vim cond-a.sh\n$ 4.1.5 22 408---&gt; sh cond-a.sh\ntest: 1: -a: unexpected operator\n$ 4.1.5 23 409---&gt; vim cond-a.sh\n$ 4.1.5 24 410---&gt; sh cond-a.sh\ntest: 1: -a: unexpected operator\n$ 4.1.5 25 411---&gt; vim cond-a.sh\n$ 4.1.5 26 412---&gt; sh cond-a.sh a.out\nyes\n$ 4.1.5 27 413---&gt; sh cond-a.sh a.outg\nyes\n$ 4.1.5 28 414---&gt; sh cond-a.sh a.outg\nyes\n$ 4.1.5 29 414---&gt; vim cond-a.sh\n$ 4.1.5 30 415---&gt; sh cond-a.sh a.outg\nyes\n$ 4.1.5 31 416---&gt; vim cond-a.sh\n$ 4.1.5 32 417---&gt; sh cond-a.sh a.out\nyes\n$ 4.1.5 33 418---&gt; sh cond-a.sh a.outj\nyes\n<\/pre>\n<pre>\n$ 4.1.5 34 419---&gt; test -a a.out\n$ 4.1.5 35 420---&gt; echo $?\n0\n$ 4.1.5 36 421---&gt; rm a.out\n$ 4.1.5 37 422---&gt; test -a a.out\n$ 4.1.5 38 423---&gt; echo $?\n1\n$ 4.1.5 39 424---&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GET THE HANG [ -a option ] $ 4.1.5 1 387&#8212;&gt; vim cond-a.sh $ 4.1.5 2 388&#8212;&gt; sh cond-a.sh cond-a.sh: 3: Syntax error: end of file unexpected (expecting &#8220;then&#8221;) $ 4.1.5 3 389&#8212;&gt; vim cond-a.sh $ 4.1.5 4 390&#8212;&gt; sh cond-a.sh cond-a.sh: 4: Syntax error: end of file unexpected (expecting &#8220;fi&#8221;) $ 4.1.5 5 391&#8212;&gt; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/10\/24\/7820-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bash   -a option&#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\/7820"}],"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=7820"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7820\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}