Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!burdvax!bbking!bcarb From: bcarb@KSP.Unisys.COM (Brian Carb) Newsgroups: comp.unix.questions Subject: Problem with make Summary: Can it work with for in sys V? Keywords: make for sysV Message-ID: <715@bbking.KSP.Unisys.COM> Date: 26 Sep 89 16:02:31 GMT Organization: Unisys/Knowledge Systems Projects, Frazer, PA Lines: 18 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@ksp.unisys.com) Unisys - Knowledge Systems Frazer, PA