On Sat, 20 Apr 2013 02:10:20 -0400 Mike Frysinger <vap...@gentoo.org> wrote:
> On Saturday 20 April 2013 01:12:20 Michał Górny wrote: > > for v in CHOST CBUILD AS CC CXX LD PKG_CONFIG_{LIBDIR,PATH} ; do > > vv="__abi_saved_${v}" > > - export ${v}="${!vv}" > > + unset ${v} > > + [[ ${!vv+1} ]] && export ${v}="${!vv}" > > unset ${vv} > > merge the two unset commands. no need to run it twice. How would I do this? If I do both before the 'export', I lose the original value. If I do both after the 'export', I lose the value I just exported. -- Best regards, Michał Górny
signature.asc
Description: PGP signature