Hi everyone!
I want to implement the following script with Klish 3:
<ENTRY name="exit" help="Exit">
<ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
<ACTION sym="script" interactive="true" in="tty">
echo "Do you really want to exit? (y/n)"
read input
[[ "${input: 0:1}" == "y" ]]</ACTION>
<ACTION sym="nav" exec_on="success">exit</ACTION>
<ACTION sym="printl" exec_on="success">Exiting...</ACTION>
</ENTRY>
This script works sometimes, but required to type answer twice. Any ideas on how to make it work?
Thanks in advance!--
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 visit https://groups.google.com/d/msgid/klish/ce43412e-eeef-4d1f-a631-59c9cb8cce14n%40googlegroups.com.