why doesn't this shell program work

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Mon Mar 4 06:33:12 AEST 1985


> for ...
> do
> 	variable=some
> done | ...
> echo $variable

The problem is that `variable' is being set in a forked subshell.
I don't know of any simple way around this.



More information about the Comp.unix mailing list