Modify ↓
Ticket #1289 (closed defect: fixed)
Opened 7 years ago
Last modified 7 years ago
Hitting Enter in trac-admin repeats the previous command
| Reported by: | Norbert Unterberg <nepo@…> | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | low | Milestone: | 0.9 |
| Component: | admin/console | Version: | 0.8.1 |
| Severity: | minor | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
When you hit enter in trac-admin, the previous command is repeated and executed again. In most cases this is harmless, but you never know...
Attachments
Change History
comment:1 Changed 7 years ago by Matthew Good <trac matt-good net>
comment:2 Changed 7 years ago by cmlenz
- Milestone set to 0.9
- Owner changed from daniel to cmlenz
- Priority changed from normal to low
- Severity changed from normal to minor
- Status changed from new to assigned
- Version changed from devel to 0.8.1
Looks good.
comment:3 Changed 7 years ago by anonymous
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in [1345].
Note: See
TracTickets for help on using
tickets.



Ok, looks like we just need to override Cmd.emptyline
=== scripts/trac-admin ================================================================== --- scripts/trac-admin (revision 1608) +++ scripts/trac-admin (local) @@ -64,6 +64,9 @@ def docmd(self, cmd='help'): self.onecmd(cmd) + def emptyline(): + pass + def run(self): self.interactive = 1 print 'Welcome to trac-admin %(ver)s\n' \