bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27495] echo behaves different in pipe for /bin/sh symlinked to das


From: anonymous
Subject: [bug #27495] echo behaves different in pipe for /bin/sh symlinked to dash
Date: Tue, 22 Sep 2009 08:24:15 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.13) Gecko/2009082121 Iceweasel/3.0.14 (Debian-3.0.14-1)

URL:
  <http://savannah.gnu.org/bugs/?27495>

                 Summary: echo behaves different in pipe for /bin/sh
symlinked to dash
                 Project: make
            Submitted by: None
            Submitted on: Di 22 Sep 2009 08:24:14 UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Hi,

'\nfoo' is interpreted differently by echo:

| address@hidden % cat Makefile
| default:
|       echo '\nfoo'
|       echo '\nfoo' > bar
| address@hidden % make
| echo '\nfoo'
| \nfoo
| echo '\nfoo' > bar
| address@hidden % cat bar
|
| foo
| address@hidden % ls -l /bin/sh
| lrwxrwxrwx 1 root root 4 11. Aug 11:51 /bin/sh -> dash

If SHELL is set to '/bin/dash' this changes:
| address@hidden % cat Makefile
| SHELL=/bin/dash
| default:
|       echo '\nfoo'
|       echo '\nfoo' > bar
| address@hidden % make
| echo '\nfoo'
|
| foo
| echo '\nfoo' > bar
| address@hidden % cat bar
| 
| foo

When SHELL is set to '/bin/sh' the strange behavior arises again:
| address@hidden % cat Makefile
| SHELL=/bin/sh
| default:
|       echo '\nfoo'
|       echo '\nfoo' > bar
| address@hidden % make
| echo '\nfoo'
| \nfoo
| echo '\nfoo' > bar
| address@hidden % cat bar
| 
| foo

HTH

| address@hidden % make --version
| GNU Make 3.81
| Copyright (C) 2006  Free Software Foundation, Inc.
| This is free software; see the source for copying conditions.
| There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
| PARTICULAR PURPOSE.
| 
| This program built for i486-pc-linux-gnu
| address@hidden % cat /etc/debian_version
| squeeze/sid
| address@hidden % apt-cache policy make
| make:
|   Installed: 3.81-6
|   Candidate: 3.81-6
|   Version table:
|  *** 3.81-6 0
|         500 http://ftp.de.debian.org testing/main Packages
|         100 /var/lib/dpkg/status






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27495>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]