parameter completion

52 views
Skip to first unread message

Rick Taft

unread,
Aug 14, 2023, 10:35:55 AM8/14/23
to kl...@googlegroups.com
I have a dynamic variable called known_zones that I use for parameter completion. It returns a list of strings separated by newlines.  My problem comes when zones have spaces in their names. For example: "zone one". Klish treats this as two separate values.

    <VAR name="known_zones" dynamic="true">
      <ACTION>/usr/local/lumeta/bin/getzones</ACTION>
    </VAR>
    <PARAM name="zoneval"
           help='Zone name'
           completion="${known_zones}"
           ptype="STRING"
           optional="false"/>
I tried using backslashes and double backslashes to escape the space and I also tried surrounding the strings with quotes, but nothing didn't work.
Any suggestions on how to make this work?

Serj Kalichev

unread,
Aug 14, 2023, 10:51:44 AM8/14/23
to kl...@googlegroups.com
Probably it will not work.
Completion strings (words) are separated by spaces but not newlines.

klish3 really uses newlines to solve this problem


14.08.2023 17:35, Rick Taft пишет:
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/klish/CAEQx_jWtTnV%3Dt2OHoLA76k75TkRTyAbBXWdSV%3D7DLLa6Rsv9SA%40mail.gmail.com.


Rick Taft

unread,
Aug 14, 2023, 1:47:43 PM8/14/23
to kl...@googlegroups.com
Thanks for the quick response, Serj!
I'll try to upgrade.
Reply all
Reply to author
Forward
0 new messages