Modify ↓
Opened 21 years ago
Closed 21 years ago
#1289 closed defect (fixed)
Hitting Enter in trac-admin repeats the previous command
| Reported by: | Owned by: | Christopher Lenz | |
|---|---|---|---|
| Priority: | low | Milestone: | 0.9 |
| Component: | admin/console | Version: | 0.8.1 |
| Severity: | minor | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal 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 (0)
Change History (3)
comment:1 by , 21 years ago
comment:2 by , 21 years ago
| Milestone: | → 0.9 |
|---|---|
| Owner: | changed from to |
| Priority: | normal → low |
| Severity: | normal → minor |
| Status: | new → assigned |
| Version: | devel → 0.8.1 |
Looks good.
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' \