Giorgos Keramidas wrote: > On 2005-08-12 10:16, Xu Qiang <[EMAIL PROTECTED]> wrote: >> Btw, can we "export" a value in the sub-shell back to the parent? > > Only through `backquote subtitution', as the child process cannot > affect the environment of the parent process. > > value=`shell command` > value=$(shell command)
Ah, yes, I mistakened it. The "export" mechanism is to preserve the value from the parent to the child, not the other direction, as described in the book "The Unix Programming Environment" by Brian Kernighan and Rob Pike. Thanks, Xu Qiang _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"