[Top][All Lists]

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

Does not work: 2>&1 (echo hello)

From: Chet Ramey
Subject: Does not work: 2>&1 (echo hello)
Date: Thu, 22 May 2003 08:55:58 -0400
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030422

>Machine Type: sparc-sun-solaris2.6
>Bash Version: 2.01
>Patch Level: 1
>Release Status: release
>Description: A construct such as
>                2>&1 (echo hello)
>           works for Borne and Korn shell but fails for bash
>           reducing shell script portability.
>           Problem exists for 2.05 also on Solaris/Linux.
>Repeat-By: bash$ 2>&1 (echo hello)
>         bash: syntax error near unexpected token `(e'

The answer to this is in the Bash FAQ, question F5.


reply via email to

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