bug-bash
[Top][All Lists]
Advanced

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

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


From: Marcus D. Gabriel
Subject: Does not work: 2>&1 (echo hello)
Date: Mon, 05 May 2003 16:20:28 +0200

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.6
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DHOSTTYPE='sparc' -DOSTYPE='solaris2.6'
-DMACHTYPE='sparc-sun-solaris2.6' -DSHELL -DHAVE_CONFIG_H   -I. -I. -I./lib -O3 
-msupersparc -DSYSV
-DSVR4 -fomit-frame-pointer -w -s -I/usr/openwin/include -I/usr/dt/include
-I/opt/Summertime_98.sparc/include
uname output: SunOS ws6 5.9 Generic_112233-04 sun4u sparc SUNW,Ultra-5_10
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'

Thanks in advance,
- Marcus D. Gabriel
-- 
  Marcus D. Gabriel, Ph.D.     mailto:marcus.gabriel@nexos.com
  Nexos AG                                http://www.nexos.com
  Frobenstrasse 66          Main: +41 61 283 5500/Direct: 5506
  CH4053 Basel, Switzerland               Fax: +41 61 283 5501




reply via email to

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