[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to echo the output of a shell command and preserve the newlines
From: |
Paul Smith |
Subject: |
Re: How to echo the output of a shell command and preserve the newlines |
Date: |
Tue, 25 Aug 2015 13:56:26 -0400 |
On Tue, 2015-08-25 at 10:40 -0700, Ploppz wrote:
> Ah, thanks! I was a bit confused in what degree I can rely on
> bash/shell functionality in make. Is the body of rules just plain sh
> or something else?
All recipes are passed to /bin/sh (not bash, unless you set the SHELL
variable explicitly in your makefile) [*]. Make just starts the shell,
gives it the recipe, and waits to see what the exit code is.
[*] Actually if your recipe is "simple enough" make will invoke it
directly rather than starting a shell, for efficiency, but the results
should be identical.