Bug 8366 - Tab completion doesn't handle quotes or escape sequences
Summary: Tab completion doesn't handle quotes or escape sequences
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 09:02 CEST by Pierre Ossman
Modified: 2024-07-12 11:02 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2024-06-18 09:02:33 CEST
If you do something like this:

  $ tlctl session list --agent "ag<TAB>

Then it will fail as the " is not properly ignored and interpreted as part of the agent name.

This is a somewhat common issue in other tab completers as well, so users might not expect it to work reliably. Still, it would be nice if we could tab complete these cases as well as users might use them.

Note that the complexity increases massively when considering bug 8353 as the allowed syntax can then vary. We also need to make sure any quoting or escaping isn't stripped out in the results given back to the user.

Note You need to log in before you can comment on or make changes to this bug.