Re: grep-2.27-1 fails when >/dev/null 2>&1
On Tue, Jan 03, 2017 at 09:39:59PM +0100, Lars Bro wrote:
> Hi list,
Hi Lars,
> I am using Debian Stretch, obtained with debootstrap (as of Jan 02 2017).
> Linux kernel of the host is 4.4.6, and the following is run in a chroot.
> File system is ext4.
>
> When I try to run "./configure" of one of the applications I use, it fails,
> claiming that gmake is not present.
>
> When looking into the "configure script" I find this construct:
>
> /bin/sh -c 'make --version | grep GNU' >/dev/null 2>&1
>
> And when I test it, I see this:
>
> root@mini:/# /bin/sh -c 'make --version | grep GNU' >/dev/null 2>&1
> root@mini:/# echo $?
> 2
> root@mini:/# /bin/sh -c 'make --version | grep GNU' >/dev/null 2>/dev/null
> root@mini:/# echo $?
> 0
> root@mini:/#
>...
thanks for your report, can you submit it as a bug report against the
grep package?
Upstream bug report and patch for this issue are at
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25283
> yours,
>
> Lars Bro
Thanks
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
Reply to: