[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
The strange echo command in makefile, may due to bash 4. Please help.
From: |
Chen Jun (陈军) |
Subject: |
The strange echo command in makefile, may due to bash 4. Please help. |
Date: |
Fri, 18 Dec 2009 14:33:04 +0800 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hi, everyone. I run into a problem today. I have a very simple makefile:
-------------
all:
@echo -e "line1\n"
-------------
On openSUSE 11.1, it outputs
line1
But on Ubuntu 9.10, it outputs
-e line1
NOTE the preceeding -e !
If I execute echo -e "line1"; directly on Bash command line of both
Linux, they both outputs "line1" only. In this case, I know /bin/echo is
actually executed.
The difference between the two Linux I can speculate is the Bash
version: SUSE has bash 3.2.39, while Ubuntu has 4.0.33 . And GNU make
3.81 try to use bash'es internal echo command in the above makefile sample.
So, I'd like to always use external echo in my makefile, but don't let
me change every occurrence of "echo" to "/bin/echo". Can somebody help?
- The strange echo command in makefile, may due to bash 4. Please help.,
Chen Jun (陈军) <=