[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: POSIX replacement for bash's “export -n” ?



Le Mon, Jul 12, 2010 at 03:01:35PM +0300, Peter Pentchev a écrit :
> On Mon, Jul 12, 2010 at 08:56:55PM +0900, Charles Plessy wrote:
> > 
> >   open (WOSSNAME, "export -n EMBOSS_ACDCOMMANDLINE;wossname -alpha -auto|") || die "Cannot run wossname";
> > 
> > by the following line:
> > 
> >   open (WOSSNAME, "(unset EMBOSS_ACDCOMMANDLINE; wossname -alpha -auto)|") || die "Cannot run wossname";
> 
> Erm... since you *are* executing this in a separate process, can't you just
> unset it even without running it in a subshell?

Good point :)

So basically I will write Upstream that in that case there is no need to
protect the parent environment, and ask them to replace “export -n” by “unset”.

Many thanks,

-- 
Charles


Reply to: