7 Jan
2002
7 Jan
'02
12:05 a.m.
Okay, I'm totally confuggled now. Let's boil this down. Take this simple program: -------------------- snip snip --------------------/tmp/foo.sh #! /bin/sh echo "OPT = x${OPT}x" echo "CFLAGS= x${CFLAGS}x" -------------------- snip snip -------------------- and invoke it like: % CFLAGS='one' OPT="two $CFLAGS" /tmp/foo.sh What do you get? What do you *expect* to get? Am I boiling things down correctly? On every system I've tested, the following output is what I get: % CFLAGS='one' OPT="two $CFLAGS" /tmp/foo.sh OPT = xtwo x CFLAGS= xonex So, why should any of this work anywhere? Should we ever expect $OPT to get the right value? i-must-be-missing-something-really-obvious,-obvious-ly y'rs, -Barry