|
From: | Peter Johansson |
Subject: | Re: How do you echo a shell variable reference |
Date: | Tue, 14 Apr 2015 08:44:53 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 |
On 04/14/2015 08:24 AM, Arthur Schwarz wrote:
I am trying to echo: echo 'exit $status' >> file from the Makefile generated by Makefile.am. What I get is: echo 'exit $status' >> file in the Makefile, which is correct, but in execution (make check) I get exit tatus
Shell variables are referred to with double dollar sign in a Makefile: echo exit $$status hth, -- Peter Johansson
[Prev in Thread] | Current Thread | [Next in Thread] |