[pacman-dev] [PATCH] makepkg: remove bash4 style output redirection

Cedric Staniewski cedric at gmx.ca
Sun Jun 20 12:49:44 EDT 2010


On 20.06.2010 18:15, Daenyth Blank wrote:
> On Sun, Jun 20, 2010 at 11:21, Allan McRae <allan at archlinux.org> wrote:
>> convert bash-4 "&>" style redirection to "2>&1" to maintain
>> compatibility with bash-3.2
>>
>> Signed-off-by: Allan McRae <allan at archlinux.org>
>> ---
> 
> &> style redirection is supported by bash 3, as far as I know. Maybe
> even bash 2, but I don't have that on hand to test. Was this added in
> bash 3.3, or does 3.2 support it?

I don't have access to a bash3 anymore, but you're right. It's mentioned
in bash-3.2.48's man page. Maybe there was a bug that prevented it from
working correctly or [1] is just wrong.

>    &>filename
>       # Redirect both stdout and stderr to file "filename."
>       # This operator is now functional, as of Bash 4, final release.


[1] http://tldp.org/LDP/abs/html/io-redirection.html


More information about the pacman-dev mailing list