Bash

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Created page with '==Command Not Found== <source lang="bash"> function command_not_found_handle { echo "Hello" return 127 } </source>')
 
m
Line 1: Line 1:
 +
==Useful Arguments==
 +
{|
 +
| -e || treat any non-zero return as an error, and quit
 +
|-
 +
| -u || treat any use of an unset variable as an error, and quit
 +
|}
 +
 
==Command Not Found==
 
==Command Not Found==
 
<source lang="bash">
 
<source lang="bash">

Revision as of 22:06, 30 March 2012

Useful Arguments

-e treat any non-zero return as an error, and quit
-u treat any use of an unset variable as an error, and quit

Command Not Found

function command_not_found_handle {
  echo "Hello"
  return 127
}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox