
{"id":7792,"date":"2012-10-19T14:37:35","date_gmt":"2012-10-19T14:37:35","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7792"},"modified":"2012-10-19T14:37:35","modified_gmt":"2012-10-19T14:37:35","slug":"ifs-internal-field-separator-gnu-bash","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/10\/19\/ifs-internal-field-separator-gnu-bash\/","title":{"rendered":"IFS Internal Field Separator &#8212;  GNU Bash."},"content":{"rendered":"<pre>\n$ 4.2.36 1 501---&gt; echo $*\n\n$ 4.2.36 2 502---&gt; echo \"$*\"\n\n$ 4.2.36 3 503---&gt; echo $IFS\n\n$ 4.2.36 4 504---&gt; set $IFS=rightleftwrong\n$ 4.2.36 5 505---&gt; echo $*\n=rightleftwrong\n$ 4.2.36 6 506---&gt; echo \"$*\"\n=rightleftwrong\n$ 4.2.36 7 507---&gt; echo $IFS\n\n$ 4.2.36 8 508---&gt; echo $*\n=rightleftwrong\n$ 4.2.36 9 509---&gt; read $*\njeff\nbash: read: `=rightleftwrong': not a valid identifier\n$ 4.2.36 10 510---&gt; read $*\nbash: read: `=rightleftwrong': not a valid identifier\n$ 4.2.36 11 511---&gt; read $*;\nbash: read: `=rightleftwrong': not a valid identifier\n$ 4.2.36 12 512---&gt;  var1=1+2+3\n$ 4.2.36 13 513---&gt; echo $var1\n1+2+3\n$ 4.2.36 14 514---&gt; IFS=+\n$ 4.2.36 15 515---&gt; echo $var1\n1 2 3\n$ 4.2.36 16 516---&gt; IFS=-\n$ 4.2.36 17 517---&gt; echo $var1\n1+2+3\n$ 4.2.36 18 518---&gt; IFS=\" \"\n$ 4.2.36 19 519---&gt; echo $var1\n1+2+3\n$ 4.2.36 20 520---&gt; IFS=\",\"\n$ 4.2.36 21 521---&gt; echo $var1\n1+2+3\n$ 4.2.36 22 522---&gt;  var1=1+2,+3\n$ 4.2.36 23 523---&gt; echo $var1\n1+2 +3\n$ 4.2.36 24 524---&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$ 4.2.36 1 501&#8212;&gt; echo $* $ 4.2.36 2 502&#8212;&gt; echo &#8220;$*&#8221; $ 4.2.36 3 503&#8212;&gt; echo $IFS $ 4.2.36 4 504&#8212;&gt; set $IFS=rightleftwrong $ 4.2.36 5 505&#8212;&gt; echo $* =rightleftwrong $ 4.2.36 6 506&#8212;&gt; echo &#8220;$*&#8221; =rightleftwrong $ 4.2.36 7 507&#8212;&gt; echo $IFS $ 4.2.36 8 508&#8212;&gt; echo $* =rightleftwrong $ 4.2.36 9 509&#8212;&gt; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/10\/19\/ifs-internal-field-separator-gnu-bash\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;IFS Internal Field Separator &#8212;  GNU Bash.&#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\/7792"}],"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=7792"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7792\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}