Re: [RFA] Add "del" as alias to "delete"

Michael Snyder
2006-04-06T21:38:25Z

Daniel Jacobowitz wrote:
> On Thu, Apr 06, 2006 at 02:04:17PM -0700, Michael Snyder wrote:
>
>>Joel Brobecker wrote:
>>
>>>>>2006-04-06 Joel Brobecker <brobecker@adacore.com>
>>>>>
>>>>> * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
>>>>> of the "delete" command.
>>>>>
>>>>
>>>>Does anyone think we should make "dele" and "delet" work again too?
>>
>>Guys, this seems awkward and ad hoc (I realize it's my fault...)
>>
>>What if we make "delete" a command prefix (like "maint"),
>>and then just branch from what follows it (eg. breakpoint,
>>tracepoint, fork, checkpoint, display), with the default to be
>>breakpoint.
>>
>>I'm not quite sure why this is broken only now...
>>it used to work when "delete tracepoint" and
>>"delete display" were possibilities.
>
>
> You know, I had completely forgotten those were there. I wish I'd
> realized before.
>
> The reason it's a problem now is that you didn't add "delete
> checkpoint", but instead "delete-checkpoint". If we switch it the
> problem will go away.
>
> There's a similar problem with detach, by the way. I used to type
> "det" and now that doesn't work. Aliases or rename?

Rename. It's early enough, I don't think many people are using
checkpoints yet.

I think I caused the very problem I was thinking to avoid,
by using that hyphen. ;-(