Opened 9 years ago
Last modified 9 years ago
#25420 closed Bug
Bash completion helper always with exit-code 1 — at Version 1
Reported by: | Daniel Hahler | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The handler for (Bash) autocompletion exists with code 1 always, which is not helpful in case you want to catch errors, e.g. because some imports failed.
Code reference: https://github.com/django/django/blob/bac13074ee5bf6b35e45370fc8b9b14448c765dd/django/core/management/__init__.py#L270
It should exit with 0 by default instead.
It was added in [677ddcbb04], and it does not look like it would be handled / expected by the Bash wrapper, but I have not checked it.
Change History (1)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|---|
Summary: | Completion helper always with exit-code 1 → Bash completion helper always with exit-code 1 |
Note:
See TracTickets
for help on using tickets.