[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why doesn't this work properly?
From: |
Rick Flower |
Subject: |
Re: Why doesn't this work properly? |
Date: |
Fri, 31 Aug 2007 12:04:57 -0700 (PDT) |
User-agent: |
SquirrelMail/1.4.10a |
On Fri, August 31, 2007 11:51 am, Brian Dessent wrote:
> Foreach is just a simple string processing function. It has no idea
> that "ln -s $(srcfile) ." is actually a command, so the output of the
> foreach expansion is just one long list of words. That's not a valid
> command. You need to add a delimiter to separate each ls invocation,
> e.g. "$(foreach srcfile, $(TESTSTUB_SOURCES), ln -s $(srcfile) . ;)".
Does that mean that it was really only invoking the shell once for the
entire string -- now the string is basically "ln -s <foo> . ; ln -s <bar> ."
or similar? I guess that's a bit different than I was expecting.. I might
also play around w/ using $(shell) as well.. However, your fix did work!
Thanks!
- Why doesn't this work properly?, Rick Flower, 2007/08/31
- Re: Why doesn't this work properly?, Brian Dessent, 2007/08/31
- Re: Why doesn't this work properly?,
Rick Flower <=
- Re: Why doesn't this work properly?, Brian Dessent, 2007/08/31
- Re: Why doesn't this work properly?, Rick Flower, 2007/08/31
- Re: Why doesn't this work properly?, Rick Flower, 2007/08/31
- Re: Why doesn't this work properly?, Philip Guenther, 2007/08/31
- Re: Why doesn't this work properly?, Rick Flower, 2007/08/31