On Fri, Dec 14, 2012 at 07:47:04AM -0800, Ben Pfaff wrote:
> On Fri, Dec 14, 2012 at 12:37:50AM -0800, Justin Pettit wrote:
> > On Dec 13, 2012, at 2:45 PM, Ben Pfaff <[email protected]> wrote:
> >
> > > On tho other hand, "trap $cmd 0" does by itself what I wanted: it causes
> >
> > s/tho/the/
>
> Thanks.
I pushed this to everywhere.
> > > - trap 'rm -f "${script_interfaces}" "${script_flows}" ' 0 1 2 13 15
> > > + trap 'rm -f "${script_interfaces}" "${script_flows}" ' 0
> >
> > I'm by no means an expert, but would "EXIT" instead of "0" be the more
> > common convention in bash? Reading the man page, they have the same
> > affect, tho.
>
> EXIT is more readable, but I think it was invented by POSIX and is
> therefore less portable than 0.
I decided to stick with 0, because that is less churn. I don't have
any real argument against EXIT, especially given that Ed Maste pointed
out that (Free)BSD supports EXIT.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev