bug-bash
[Top][All Lists]
Advanced

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

bash segfaults on simple function


From: vaxerdec
Subject: bash segfaults on simple function
Date: Tue, 29 Jul 2003 02:58:28 -0400 (EDT)

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -D_GNU_SOURCE  -I.  -I. -I./include 
-I./lib -O2 -march=i386 -mcpu=i686
uname output: Linux newbox.localdomain 2.4.21+pre7+ac1+benh-041103 #5 Thu Apr 
17 16:16:18 EDT 2003 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

don't know if you guys already fixed this.

         $ type gg
        + type gg
        gg is a function
        gg ()
        {
            local search;
            local param;
            while true; do
                param=`echo "$1" | sed 's, ,%20,g'`;
                search="$search%22$param%22";
                shift;
            done;
            links "http://www.google.com/search?hl=en&ie=ISO=8859-1&q=$search";
        }

         $ gg
        + gg
        + local search
        + local param
        + true
        ++ sed 's, ,%20,g'
        ++ echo ''
        + param=
        + search=%22%22
        + shift
        Segmentation fault




reply via email to

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