[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with for loop

From: Ed Shaw
Subject: Help with for loop
Date: Fri, 30 Dec 2005 11:25:31 -0800


I'm just new to this stuff and can't figure it out.

I have a simple shell program with a for loop:

Contents of


for i in one two three; do echo "$i"; done

Now I have done the same thing in a make file:

Contents of t.mak:


        for i in one two three; do echo "$i"; done

So, the shell program works and echos out one two three.  The make file
echos out 3 blank lines.  Why?

If this matters, I'm running SUSE 10.0 with GNU Make 3.80


reply via email to

[Prev in Thread] Current Thread [Next in Thread]