Minor change.
* mh/tests/atlocal.in (mimeflt): ignore stderr, instead of reading input from /dev/null, because this function can theoretically be used as a filter.
Showing
1 changed file
with
6 additions
and
1 deletions
... | @@ -11,6 +11,11 @@ remove_curdir() { | ... | @@ -11,6 +11,11 @@ remove_curdir() { |
11 | # If FILE is not given, filter stdin. | 11 | # If FILE is not given, filter stdin. |
12 | # "Variable information" means part boundary and Content-ID header values. | 12 | # "Variable information" means part boundary and Content-ID header values. |
13 | # These elements are likely to change between invocations of mhn -build. | 13 | # These elements are likely to change between invocations of mhn -build. |
14 | # | ||
15 | # Stderr is redirected to /dev/null because "one true awk" (used, in | ||
16 | # particular, on FreeBSD) complains when closing stdin fails, even if | ||
17 | # it did not use it at all (it fails because stdin is closed earlier by | ||
18 | # MH_SETUP). | ||
14 | mimeflt() { | 19 | mimeflt() { |
15 | awk ' | 20 | awk ' |
16 | /^Content-Type:/ { | 21 | /^Content-Type:/ { |
... | @@ -35,5 +40,5 @@ awk ' | ... | @@ -35,5 +40,5 @@ awk ' |
35 | } else | 40 | } else |
36 | 41 | ||
37 | } | 42 | } |
38 | ' $* </dev/null | 43 | ' $* 2>/dev/null |
39 | } | 44 | } | ... | ... |
-
Please register or sign in to post a comment