From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27826 invoked by alias); 20 Feb 2005 17:14:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27482 invoked by uid 48); 20 Feb 2005 17:14:47 -0000 Date: Sun, 20 Feb 2005 23:07:00 -0000 Message-ID: <20050220171447.27481.qmail@sourceware.org> From: "ludovic dot brenta at insalien dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050219113933.20075.sbellon@sbellon.de> References: <20050219113933.20075.sbellon@sbellon.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/20075] Bug in GNAT.Expect.Non_Blocking_Spawn X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg02403.txt.bz2 List-Id: ------- Additional Comments From ludovic dot brenta at insalien dot org 2005-02-20 17:14 ------- Hi Stefan, I've given some more thought to the problem, and I think that perhaps the bug is in Ada.Command_Line.Command_Name, not in GNAT.OS_Lib or GNAT.Expect. Indeed, it is Ada.Command_Line.Command_Name that truncates argv[0] at the first space, isn't it? And this is wrong, because even the basename of the program may have spaces in it. To demonstrate this, I renamed "show_params" to "show params" and amended launcher.adb accordingly: $ gnatmake -o "show params" show_params.adb $ gnatmake launcher.adb $ PATH=$(pwd) ./launcher via GNAT.OS_Lib.Spawn: show params via GNAT.Expect.Non_Blocking_Spawn: /home/lbrenta/src/ada/tmp/ada 20075/show params Could you try that on Windows in a path that does not have a space in it (e.g. "C:\Temp\show params.exe")? -- Ludovic Brenta. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ludovic dot brenta at | |insalien dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20075