[Exherbo-dev] [RFC] edo

Bryan Østergaard bryan.ostergaard at gmail.com
Tue Oct 20 16:50:14 BST 2009


On Fri, Oct 16, 2009 at 2:24 AM, Mike Kelly <pioto at pioto.org> wrote:
> 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"
>  }
>
> Thoughts?
>
Sounds fine to me and the implementation is trivial so I'd say just do
it. Make sure to also update exheres-for-smarties when adding it.

Regards,
Bryan Østergaard



More information about the Exherbo-dev mailing list