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

Tom Tromey tromey@redhat.com
Tue Dec 15 19:21:00 GMT 2009


>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:

>> 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'

What do you think of the idea of making it printf-like?

Some other approach, like the above two, would be ok with me, provided
that quoting is treated properly -- it should be possible to write any
command using eval.  So, there must be some way to quote whatever
special characters are used by eval.

Tom



More information about the Gdb-patches mailing list