This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix typo in nptl Makefile


2011-08-14 13:24:56 David Miller napisaÅ(a):
> Committed as obvious.  bash silently accepts this, but other
> POSIX compliant shells (f.e. dash) do not.
> 
> nptl/
> 
>  	* Makefile (tst-cleanup0.out): Fix typo in output redirection.
> 
> ---
>  nptl/ChangeLog |    4 ++++
>  nptl/Makefile  |    2 +-
>  2 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/nptl/ChangeLog b/nptl/ChangeLog
> index 1dc5f20..7174268 100644
> --- a/nptl/ChangeLog
> +++ b/nptl/ChangeLog
> @@ -1,3 +1,7 @@
> +2011-08-14  David S. Miller  <davem@davemloft.net>
> +
> +	* Makefile (tst-cleanup0.out): Fix typo in output redirection.
> +
>  2011-08-08  Andreas Schwab  <schwab@redhat.com>
>  
>  	* sysdeps/unix/sysv/linux/x86_64/cancellation.S: Maintain aligned
> diff --git a/nptl/Makefile b/nptl/Makefile
> index 266f178..18c3182 100644
> --- a/nptl/Makefile
> +++ b/nptl/Makefile
> @@ -550,7 +550,7 @@ $(objpfx)pt-initfini.s: pt-initfini.c
>  		$(patsubst -f%,-fno-%,$(exceptions)) -o $@
>  
>  $(objpfx)tst-cleanup0.out: /dev/null $(objpfx)tst-cleanup0
> -	$(make-test-out) 2>&1 | cmp - tst-cleanup0.expect >& $@
> +	$(make-test-out) 2>&1 | cmp - tst-cleanup0.expect > $@

From `info bash`:

3.6.4 Redirecting Standard Output and Standard Error
----------------------------------------------------

This construct allows both the standard output (file descriptor 1) and
the standard error output (file descriptor 2) to be redirected to the
file whose name is the expansion of WORD.

   There are two formats for redirecting standard output and standard
error:
     &>WORD
   and
     >&WORD
   Of the two forms, the first is preferred.  This is semantically
equivalent to
     >WORD 2>&1

-- 
Arfrever Frehtes Taifersar Arahesis

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]