{"id":636,"date":"2014-11-06T08:03:59","date_gmt":"2014-11-06T01:03:59","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=636"},"modified":"2017-08-10T09:25:14","modified_gmt":"2017-08-10T02:25:14","slug":"bash-special-parameters","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2014\/11\/06\/bash-special-parameters\/","title":{"rendered":"Bash special parameters"},"content":{"rendered":"<p>Positional parameters $1,$2,$3\u2026 and their corresponding array representation, count and IFS expansion $@, $#, and $*.<br \/>\n$_ last argument of last command<br \/>\n$# number of arguments passed to current script<br \/>\n$* \/ $@ list of arguments passed to script as string \/ delimited list<br \/>\n$- current options set for the shell.<br \/>\n$$ pid of the current shell (not subshell)<br \/>\n$_ most recent parameter (or the abs path of the command to start the current shell immediately after startup)<br \/>\n$IFS the (input) field separator<br \/>\n$? most recent foreground pipeline exit status<br \/>\n$! PID of the most recent background command<br \/>\n$0 name of the shell or shell script<\/p>\n<p>Links: <a href=\"http:\/\/www.gnu.org\/software\/bash\/manual\/bashref.html#Special-Parameters\">http:\/\/www.gnu.org\/software\/bash\/manual\/bashref.html#Special-Parameters<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Positional parameters $1,$2,$3\u2026 and their corresponding array representation, count and IFS expansion $@, $#, and $*. $_ last argument of last command $# number of arguments passed to current script $* \/ $@ list of arguments passed to script as string \/ delimited list $- current options set for the shell. $$ pid of the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[155,197,32,28,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/636"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=636"}],"version-history":[{"count":1,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/636\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}