
{"id":7728,"date":"2012-10-12T19:39:53","date_gmt":"2012-10-12T19:39:53","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7728"},"modified":"2012-10-12T19:39:53","modified_gmt":"2012-10-12T19:39:53","slug":"gnu-bash-noediting-and-v","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/10\/12\/gnu-bash-noediting-and-v\/","title":{"rendered":"GNU bash  &#8211;noediting and  -v"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$ 4.2.36 5 505---&gt; bash --noediting\n$ 4.2.36 1 501---&gt; tcp\nbash: tcp: command not found\n$ 4.2.36 2 502---&gt;\n$ 4.2.36 2 502---&gt; exit\nexit\n$ 4.2.36 6 506---&gt; tcprobe\n\n$ 4.2.36 16 516---&gt; bash -v\n# System-wide .bashrc file for interactive bash(1) shells.\n\n# To enable the settings \/ commands in this file for login shells as well,\n# this file has to be sourced in \/etc\/profile.\n\n# If not running interactively, don't do anything\n[ -z \"$PS1\" ] &amp;&amp; return\n\n# check the window size after each command and, if necessary,\n# update the values of LINES and COLUMNS.\nshopt -s checkwinsize\n\n# set variable identifying the chroot you work in (used in the prompt below)\nif [ -z \"${debian_chroot:-}\" ] &amp;&amp; [ -r \/etc\/debian_chroot ]; then\n    debian_chroot=$(cat \/etc\/debian_chroot)\nfi\n\n# set a fancy prompt (non-color, overwrite the one in \/etc\/profile)\nPS1='${debian_chroot:+($debian_chroot)}u@h:w$ '\n\n# Commented out, don't overwrite xterm -T \"title\" -n \"icontitle\" by default.\n# If this is an xterm set the title to user@host:dir\n#case \"$TERM\" in\n#xterm*|rxvt*)\n#    PROMPT_COMMAND='echo -ne \" 33]0;${USER}@${HOSTNAME}: ${PWD} 07\"'\n#    ;;\n#*)\n#    ;;\n#esac\n\n# enable bash completion in interactive shells\n#if ! shopt -oq posix; then\n#  if [ -f \/usr\/share\/bash-completion\/bash_completion ]; then\n#    . \/usr\/share\/bash-completion\/bash_completion\n#  elif [ -f \/etc\/bash_completion ]; then\n#    . \/etc\/bash_completion\n#  fi\n#fi\n\n# if the command-not-found package is installed, use it\nif [ -x \/usr\/lib\/command-not-found -o -x \/usr\/share\/command-not-found\/command-not-found ]; then\n\tfunction command_not_found_handle {\n\t        # check because c-n-f could've been removed in the meantime\n                if [ -x \/usr\/lib\/command-not-found ]; then\n\t\t   \/usr\/bin\/python \/usr\/lib\/command-not-found -- \"$1\"\n                   return $?\n                elif [ -x \/usr\/share\/command-not-found\/command-not-found ]; then\n\t\t   \/usr\/bin\/python \/usr\/share\/command-not-found\/command-not-found -- \"$1\"\n                   return $?\n\t\telse\n\t\t   printf \"%s: command not foundn\" \"$1\" &gt;&amp;2\n\t\t   return 127\n\t\tfi\n\t}\nfi\n#export PS1=\"[ 33[0;31m] $ V # ! \"\nexport PS1=\"$ V # !---&gt; \"\n\nshellp()\n{\npre=: post=:\nprintf \"$pre%s$postn\" \"$@\"\n}\n\n\nprocmailx ()\n{\nORGMAIL=\/var\/mail\/$LOGNAME\n\nif cd $HOME &amp;&amp;\ntest -s $ORGMAIL &amp;&amp;\nlockfile -r0 -l1024 .newmail.lock 2&gt;\/dev\/null\nthen\ntrap \"rm -f .newmail.lock\" 1 2 3 13 15\numask 077\nlockfile -l1024 -ml\ncat $ORGMAIL &gt;&gt;.newmail &amp;&amp;\ncat \/dev\/null &gt;$ORGMAIL\nlockfile -mu\nformail -s procmail \n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $ 4.2.36 5 505&#8212;&gt; bash &#8211;noediting $ 4.2.36 1 501&#8212;&gt; tcp bash: tcp: command not found $ 4.2.36 2 502&#8212;&gt; $ 4.2.36 2 502&#8212;&gt; exit exit $ 4.2.36 6 506&#8212;&gt; tcprobe $ 4.2.36 16 516&#8212;&gt; bash -v # System-wide .bashrc file for interactive bash(1) shells. # To enable the settings \/ commands in &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/10\/12\/gnu-bash-noediting-and-v\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GNU bash  &#8211;noediting and  -v&#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\/7728"}],"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=7728"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7728\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}