Project

General

Profile

Feature #23

keyword expansion on shell command line and scripts

Added by Anonymous 8 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/07/2018
Due date:
% Done:

0%

Estimated time:

Description

It would be nice if keyword expansion is applied on the shell command line

Example:

$ bin/clish -x xml-examples/klish/etc/clish-enable/ -c "ping 127.0.0.1 repeat 1"
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.020 ms

--- 127.0.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.020/0.020/0.020/0.000 ms
$ bin/clish -x xml-examples/klish/etc/clish-enable/ -c "ping 127.0.0.1 repea 1"
Syntax error: Illegal command line
$

The 2nd command is still unique but at the moment not accepted.

It would also be nice to be able to use abbreviated commands in scripts

(btw if I enter
ping 127.0.0.1 repea 1
interactively (by editing the command line) it is also not accepted)

Also available in: Atom PDF