bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: [Cooker] strange problem with "hotplug" package


From: Jim Meyering
Subject: Re: [Cooker] strange problem with "hotplug" package
Date: Tue, 06 May 2003 22:12:20 +0200

Hi Stepan!

With your new version of grep, will `grep -q --help > /dev/full' fail?
I was surprised to see that with 2.5.1, it does give a diagnostic,
but doesn't actually fail:

  $ grep -q --help > /dev/full && echo ok
  grep: write error: No space left on device
  ok

While without -q, it works as I'd expect:

  $ grep --help > /dev/full && echo ok
  grep: write error: No space left on device
  [Exit 1]

Jim

P.S. Thanks for taking up the reins of GNU grep.

Stepan Kasal <address@hidden> wrote:
...
> +  /* don't close stdout for -q, consider ``grep -q pat <&- >&-'' */
> +  if (!exit_on_match)
> +    atexit(close_stdout);




reply via email to

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