%% Ed Shaw <[EMAIL PROTECTED]> writes:
es> test:
es> for i in one two three; do echo "$i"; done
es> So, the shell program works and echos out one two three. The make file
es> echos out 3 blank lines. Why?
The "$i" is being interpreted as the make variable "i", which you have
not set.
Whenever you want a dollar sign ($) to appear in a script, you have to
escape it by using two of them:
teat:
for i in one two three; do echo "$$i"; done
See the GNU make manual for more details.
--
-------------------------------------------------------------------------------
Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make