Re: [PATCH] Allow spaces in filenames to load command

Jim Blandy
2005-12-05T20:50:53Z

On 12/5/05, Andrew STUBBS <andrew.stubbs@st.com> wrote:
> 2005-12-05 Andrew Stubbs <andrew.stubbs@st.com>
>
> * symfile.c (generic_load): Use buildargv and tilde_expand
> to parse file names with quoting, spaces and tildes properly.

Hi, Andrew. I like the idea of using buildargv and tilde_expand.

> + /* Do we have args from the user or from the default? */
> + if (exec_bfd && args == get_exec_file (1))
> + /* The string is ONLY the file name. */
> + filename = args;

What is this about? This seems very fragile.