Re: [RFC] Let "gcore" command accept a suffix argument

Hui Zhu
2009-12-15T01:57:16Z

Agree with you. Add " with variable make it oddness.

What about change it to others, like:
eval echo {++$a}

Or add " to simple string, like:
eval echo ++$a".core"
Or
eval echo ++$a'.core'

Thanks,
Hui

On Tue, Dec 15, 2009 at 01:09, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:
>
>>> I change it to:
>>> eval echo "++$a"
>
> I'm afraid I don't like this approach either.
>
> I think quoting expressions is very ugly.  Nothing else in gdb does
> this.  Also, AFAIK it breaks completion.  Furthermore, this
> implementation ignores the possibility of quotes embedded in an
> expression.
>
> Please choose some other approach.
>
> thanks,
> Tom
>