[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 |
Hi,
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 t.sh:
#!/bin/sh
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:
#!/bin/sh
test:
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
Thanks,
Ed.
- Help with for loop,
Ed Shaw <=