Bash

From Attie's Wiki
Revision as of 22:07, 30 March 2012 by Attie (Talk | contribs)

Jump to: navigation, search

Useful Arguments

<cpde>-e</code> treat any non-zero return as an error, and quit
-u treat any use of an unset variable as an error, and quit

example

#!/bin/bash -eu
 
echo "hi"
false
echo "there"

Command Not Found

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

Variants
Actions
Navigation
Toolbox