Problem with make

Brian Carb bcarb at KSP.Unisys.COM
Wed Sep 27 02:02:31 AEST 1989


I'm having a problem using a 'for' statement with 'make'.  Consider
the following trivial makefile:

test:
	for i in 1 2 3 4; do echo "hello"; done

This always generates an error such as
Syntax error:  do:  command not found

If I type the for command directly into the shell (or
run it in a shell script), it performs without error.

I get the same error on an NCR tower, a Convergent,
and SCO 3.2.  Am I missing something?

Brian A. Carb (bcarb at ksp.unisys.com)
Unisys - Knowledge Systems
Frazer, PA



More information about the Comp.unix.questions mailing list