[Exherbo-dev] [RFC] edo

Mike Kelly pioto at pioto.org
Fri Oct 16 01:24:18 BST 2009

In the spirit of encouraging laziness...

Having to type out:

  echo rm foo
  rm foo || die "rm foo failed"

is annoying. It would be nicer to just be able to do:

  edo rm foo

A proposed implementation of edo would look something like:

  edo() {
    echo "$@"
    "$@" || die_unless_nonfatal "$* failed"


Mike Kelly

More information about the Exherbo-dev mailing list