Package: make
Version: 3.81-8.2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Makefiles which contain shell commands ending in &> are incorrectly parse by 
Make 3.81-8.2 on Debian.  It's worth noting that this also effects Ubuntu and 
presumably other upstream distributions.

While bash documentation indicates that &> should redirect output to a file 
(and indeed, it does so on RHEL/CentOS-based distributions, as well as OSX), it 
does not do this on Debian 7 or Ubuntu 14.04.01 (the only version we tested).

To test this, create a Makefile with these contents:
#BEGIN MAKEFILE
nosleep:
<tab>sleep 40 &> deleteme.txt ; \
<tab>echo "sleep complete";
#END MAKEFILE

then, run:
make nosleep


This is affecting us, because we must rewrite Makefiles whenever we wish to run 
them on Debian-based systems.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Removing &> from Makefiles has given us a workaround

   * What was the outcome of this action?

make proceeds past the command terminated by &> without waiting for the command 
to execute. 

   * What outcome did you expect instead?

We expected &> to function as it does on other Linux distributions, and as it 
does on OSX.


-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages make depends on:
ii  libc6  2.13-38+deb7u7

make recommends no packages.

Versions of packages make suggests:
pn  make-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to