-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto completion does not work for strings including space. Seen only when autocompletion is strict and is via customary callback in .cli file #221
Comments
I need some more info on the show command: |
The show command syntax is derived from .cli file:
expand_func and exec_func are C functions that call other functions to achieve expansion and to display the output (specified as 2nd argument. the functions called by expand_func and exec_func are written in python).
|
I cannot re-create it in my example code.
Can you recreate the problem using the main example? |
This may do it?
|
…Seen only when autocompletion is strict and is via customary callback in .cli file #221](clicon/clixon#221) * Removed expandvar from all match functions
Should work now. Please verify |
Case 1:
Case 2:
As far as my analysis i found the issue in cligen_str2cvv . In the tokens that are generated quotes are not included. Adding them using escape character solves the issue. i have done the code changes and tested it.
The reason it works in the case 2 is because for strings with space, in match_vec it gets matched against the generic node
and not the specified value
can you please confirm this?
The text was updated successfully, but these errors were encountered: