bug-bash
[Top][All Lists]
Advanced

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

Constructs a-la $(echo ...) failing with "bash: cho: command not found"


From: Davor Ocelic
Subject: Constructs a-la $(echo ...) failing with "bash: cho: command not found"
Date: Thu, 27 Apr 2006 14:17:17 +0200
User-agent: Mutt/1.5.9i

Configuration Information [Automatically generated, do not change]:
Machine: mips
OS: irix
Compiler: c99
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='mips' 
-DCONF_OSTYPE='irix' -DCONF_MACHTYPE='mips-unknown-irix' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib  
-I/usr/nekoware/include -g3 -O2
uname output: IRIX64 boyd 6.5 01090133 IP30
Machine Type: mips-unknown-irix

Bash Version: 3.1
Patch Level: 14
Release Status: release

Description:
        There is a problem with bash 3 builds on IRIX 6.5/MIPS/MIPSPro 
platform. 
        The build goes fine, but every invocation of $(command ...) construct
        fails. The problem surfaces in both bash test suite and later if one
        tries to use the shell for work.

        It seems like bash takes one character too many in $(, and the 
resulting 
        shell command is then invalid. Constructs a-la $(echo ...) fail
        with "bash: cho: command not found" (notice the "cho" with "e" 
stripped).

        It is interesting that the alternative backticks notation *does* work,
        without any problems.

        I am positive that this is not a problem with a wrong version of the
        shell somehow being used to run the tests.

        I have identified the problem in:
        GNU bash, version 3.00.0(1)-release (mips-sgi-irix6.5)
        GNU bash, version 3.1.14(1)-release (mips-unknown-irix)
        
        There is *no* problem in:
        GNU bash, version 2.00.0(1)-release (mips-sgi-irix6.5_ALPHA_1274560436)

        My Irix release is 6.5.29f, but I have identified the problem months
        ago on both 6.5.14f and 6.5.27f as well.
        
Repeat-By:
        The problem is contained in both the original bash sources
        (at least 3.00.0), and in Debian sources for 3.1.14, when compiled on
        IRIX/MIPS/MIPSPro. It leads me to believe the problem is therefore
        upstream.

        I am able to run any additional tests you suggest or otherwise provide
        help in order to trace this problem.
        *I am not subscribed to the list, so please CC: me*.

        Here's the "session transcript" from an Irix 6.5 shell:

        ## (Works as expected):
        $ /usr/gnu/bin/bash --version
        GNU bash, version 2.00.0(1)-release (mips-sgi-irix6.5_ALPHA_1274560436)
        $ /usr/gnu/bin/bash
        $ echo $(echo AA)
        AA
        $ echo `echo AA`
        AA
        $ exit


        ## (Has problems):
        $ /usr/nekoware/bin/bash --version
        GNU bash, version 3.00.0(1)-release (mips-sgi-irix6.5)
        $ /usr/nekoware/bin/bash
        $ echo $(echo AA)
        bash: cho: command not found
        $ echo `echo AA`
        AA
        $exit


        ## (Has problems):
        $ ./bash --version
        GNU bash, version 3.1.14(1)-release (mips-unknown-irix)
        $ ./bash
        $ echo $(echo AA)
        bash: cho: command not found
        $ echo `echo AA`
        AA

Best regards,
-doc




reply via email to

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