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?
--
Mike Kelly
_______________________________________________
Exherbo-dev mailing list
[email protected]
http://lists.exherbo.org/mailman/listinfo/exherbo-dev
