Bug 8423 - tl-config tab completion suggests invalid paths
Summary: tl-config tab completion suggests invalid paths
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-09-10 17:41 CEST by Adam Halim
Modified: 2024-09-17 13:13 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Adam Halim cendio 2024-09-10 17:41:10 CEST
Given a hive structure like below, with nested folders:

> # tl-config -Ra /a/
> b/
>     c/
>         param3 = hej

When tabcompleting the below commandline:
> # tl-config /a/b/c/
On the first <TAB> press we don't get any suggestions, but the second time, it suggests:
> /a/b/c/        /a/b/c/param3
This is wrong for two reasons:

1. The command "tl-config /a/b/c/" is not valid, it will produce the following error:
> /a/b/c/: No such parameter
Our point is that our tab completion shouldn't suggest paths that will cause errors.


2. It should suggest "/a/b/c/param3" right away, since its the only valid option.

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