K Shell script problem
Brian Kenney
kenney at hsi.UUCP
Fri Aug 24 01:25:06 AEST 1990
OK, net.gentlepeople, how about this this one?
In a K Shell script, I have a line like this:
export FOO="This is part 1." \
FOO="${FOO}This is part 2."
print $FOO
The only thing that is printed is "This is part 2."
Now, if I remove the 'export', so the lines are:
FOO="This is part 1." \
FOO="${FOO}This is part 2."
print $FOO
Now, both parts are printed.
What gives? Any help would be appreciated.
Thanks.
--
Brian Kenney kenney at hsi.com
More information about the Comp.unix.questions
mailing list