
{"id":7366,"date":"2012-06-01T19:54:28","date_gmt":"2012-06-01T19:54:28","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7366"},"modified":"2012-06-01T19:54:28","modified_gmt":"2012-06-01T19:54:28","slug":"function-implementation-for-bash-shell","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/06\/01\/function-implementation-for-bash-shell\/","title":{"rendered":"function implementation for bash shell"},"content":{"rendered":"<h4>commandline session<\/h4>\n<pre>\n$ 4.2.20 44 301---&gt; cat .bashrc\n#export PS1=\"[ 33[0;31m] $ V # ! \"\nexport PS1=\"$ V # !---&gt; \"\n\nshellp()\n{\npre=: post=:\nprintf \"$pr%s$pon\" \"$@\"\n}\n\n$ 4.2.20 45 302---&gt; shellp hacker cracker maker\nhacker\ncracker\nmaker\n$ 4.2.20 46 303---&gt;\n\n<\/pre>\n<p><\/p>\n<pre>\n$ 4.2.20 2 457---&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 3 458---&gt; shellp hacker cracker maker\nhacker\ncracker\nmaker\n$ 4.2.20 4 459---&gt; source .bashrc\n$ 4.2.20 5 460---&gt; shellp hacker cracker maker\n:hacker:\n:cracker:\n:maker:\n$ 4.2.20 6 461---&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $ 4.2.20 44 301&#8212;&gt; cat .bashrc #export PS1=&#8221;[ 33[0;31m] $ V # ! &#8221; export PS1=&#8221;$ V # !&#8212;&gt; &#8221; shellp() { pre=: post=: printf &#8220;$pr%s$pon&#8221; &#8220;$@&#8221; } $ 4.2.20 45 302&#8212;&gt; shellp hacker cracker maker hacker cracker maker $ 4.2.20 46 303&#8212;&gt; $ 4.2.20 2 457&#8212;&gt; cat .bashrc #export PS1=&#8221;[ 33[0;31m] $ &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/06\/01\/function-implementation-for-bash-shell\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;function implementation for bash shell&#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\/7366"}],"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=7366"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7366\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}