[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: embedded newlines in shell function variable expansion
From: |
Paul Smith |
Subject: |
Re: embedded newlines in shell function variable expansion |
Date: |
Fri, 09 Oct 2020 14:09:29 -0400 |
User-agent: |
Evolution 3.36.4-0ubuntu1 |
On Fri, 2020-10-09 at 18:00 +0000, Byrnes, Robert wrote:
> [pid 144497] execve("/bin/sh", ["/bin/sh", "-c", "/bin/echo blartzblurfl ;
> "], 0x7ffd98ee6bc0 /* 72 vars */) = 0
Hm, interesting. I guess it's possible we are stripping out newlines
before invoking the shell. I don't remember that being the case but it
could be.
I'm not exactly sure what your objective is but note that as written
this probably won't do what you want, because if you run:
/bin/sh -c 'echo foo
bar'
then it will echo "foo" and try to run the program "bar".
> For reference, here's the modified Makefile ...
Thx but this is not needed to be included with all the messages...
that's why we have an email archive :).