Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FelsP-0005yn-Hf for mharc-grub-devel@gnu.org; Sat, 13 May 2006 00:37:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FelsO-0005xt-98 for grub-devel@gnu.org; Sat, 13 May 2006 00:37:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FelsM-0005xF-AX for grub-devel@gnu.org; Sat, 13 May 2006 00:37:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FelsM-0005xA-3g for grub-devel@gnu.org; Sat, 13 May 2006 00:37:10 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FeluE-0001Y5-RY for grub-devel@gnu.org; Sat, 13 May 2006 00:39:07 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id E7A6E3C000F41 for ; Sat, 13 May 2006 08:03:44 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id A7ED33C000F40 for ; Sat, 13 May 2006 08:03:44 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: grub-devel@gnu.org Date: Sat, 13 May 2006 06:37:04 +0200 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605130637.05012.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.499623, version=0.17.2 Subject: yet another scripting bug X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 May 2006 04:37:12 -0000 Multiple commands in one line do not work. I get a segfault on grub-emu. grub> ls ; ls Program received signal SIGSEGV, Segmentation fault. grub_script_execute_argument_to_string (arg=0x8458b51) at ../normal/execute.c:50 50 if (argi->type == 1) (gdb) bt #0 grub_script_execute_argument_to_string (arg=0x8458b51) at ../normal/execute.c:50 #1 0x0805884d in grub_script_execute_cmdline (cmd=0x807e814) at ../normal/execute.c:135 #2 0x08058711 in grub_script_execute_cmd (cmd=Variable "cmd" is not available. ) at ../normal/execute.c:34 #3 0x0805df60 in grub_command_execute (cmdline=0x806fd60 "ls ; ls", interactive=1) at ../normal/command.c:216 #4 0x0805dc0b in grub_cmdline_run (nested=0) at ../normal/cmdline.c:163 #5 0x0805f577 in grub_normal_execute (config=0x807e7f0 "(hd0,1)/boot/grub/grub.cfg", nested=0) at ../normal/main.c:437 #6 0x0805f5cd in grub_enter_normal_mode (config=0x807e7f0 "(hd0,1)/boot/grub/grub.cfg") at ../normal/main.c:248 #7 0x0805f63e in grub_rescue_cmd_normal (argc=0, argv=0x0) at ../normal/main.c:459 #8 0x0805c39b in grub_enter_rescue_mode () at ../kern/rescue.c:600 #9 0x08063e79 in main (argc=5, argv=0xbff1dc94) at ../util/grub-emu.c:210 Okuji