On Fri, Oct 16, 2009 at 2:24 AM, Mike Kelly <[email protected]> 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 _______________________________________________ Exherbo-dev mailing list [email protected] http://lists.exherbo.org/mailman/listinfo/exherbo-dev
