execute from pbuilder and source within pbuilder ... why???

Junichi Uekawa dancer at netfort.gr.jp
Sat Jan 23 07:37:39 UTC 2010


At Mon, 11 Jan 2010 03:28:13 +0900,
Osamu Aoki wrote:
> 
> Hi,
> 
> I am playing pbuilder code along what I wrote in local archive.
> 
> One thing I do not quite understand is:
> 
> Why some files in /usr/lib/pbuilder/* are executed from pbuilder while
> some are sourced?  If all are sourced, we can remove export and code
> looks cleaner.

I think you can change it to source.

One gotcha of calling source is that exiting inside sourced file will
exit, while if you invoke another shell, then it won't.

But ./pbuilder doesn't need to do anything else, so it's probably safe
to source from pbuilder.





More information about the Pbuilder-maint mailing list