This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb run < file
- To: Tak Ota <Takaaki dot Ota at am dot sony dot com>
- Subject: Re: gdb run < file
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Sun, 1 Jul 2001 11:17:48 +0300 (IDT)
- cc: cygwin at cygwin dot com, cgf at redhat dot com, gdb at sources dot redhat dot com
On Sat, 30 Jun 2001, Tak Ota wrote:
> + char *shell = "bash -c 'exec %s %s'";
I think this will fail if the command includes the apostrophe character.
And, of course, hard-wiring the shell name is not really a good idea.