setenv in bg

Burkhard Burow burow at physics.utoronto.ca
Fri Mar 2 09:56:30 AEST 1990


Why can't I do:

prompt>( setenv a some_word ) &

Doing:

prompt>echo $a

says a is undefined.
Of course the utility of this is questionable until you do things like

prompt>( setenv a "`command_taking_time_with_little_output`" ) &

Which lets you send out many commands in parallel, so that after waiting
only for the most time-consuming command, all of them have executed 
with their output placed into their respective variables.

e_mail please and I'll post or forward if desired

burk






More information about the Comp.unix.questions mailing list