Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 8
    @Bruno: &> is an extension provided by some shells (including bash) to redirect both stdout and stderr to the same destination, but it's not portable. It's likely that the author of the Makefile has bash as his /bin/sh, but you have ash or ksh which doesn't support this syntax. Commented Mar 17, 2011 at 19:50
  • 2
    Yes, but then, you should use '>/dev/null 2>&1' instead Commented Mar 17, 2011 at 20:00
  • 1
    @BrunoLeFloch: Check if /bin/sh is a symbolic link. Note that /bin/sh may not be the shell you're using interactively. Instead of mycommand &>dest (csh/bash/zsh-specific), you can write mycommand >dest 2>&1, which is portable to any shell that make might use. Commented Mar 17, 2011 at 20:03
  • 1
    @BrunoLeFloch: AFAIK $SHELL is your user shell as defined in /etc/passwd, but makefile will try to use /bin/sh. Commented Mar 17, 2011 at 20:10
  • 1
    @D4RIO: perhaps add the > /dev/null 2>&1 version to your answer to make it complete? Commented Mar 17, 2011 at 20:20