summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-20 16:47:53 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-20 16:47:53 -0500
commite7ad4f71b1436e67eeeb949a396d4f56ff2bec16 (patch)
tree54296b5a91d36038fde338d9ce124dc9f6ca9e13 /functions
parent3c0354346ac6301a83f510ce72df900f89ce7e12 (diff)
downloadvyatta-cfg-e7ad4f71b1436e67eeeb949a396d4f56ff2bec16.tar.gz
vyatta-cfg-e7ad4f71b1436e67eeeb949a396d4f56ff2bec16.zip
Workaround for bug 7570, turning echo on manually when running a templated command should fix the majority of the problems. It would be better to fix the readline/less interaction in the future
Diffstat (limited to 'functions')
-rw-r--r--functions/interpreter/vyatta-cfg-run3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run
index 52a264a..29ac48a 100644
--- a/functions/interpreter/vyatta-cfg-run
+++ b/functions/interpreter/vyatta-cfg-run
@@ -507,6 +507,9 @@ vyatta_cfg_run ()
local found
is_elem_of "${cmd}" _vyatta_cfg_cmds
found=$?
+ stty echo # turn echo on, this is a workaround for bug 7570
+ # not a fix we need to look at why the readline library
+ # is getting confused on paged help text.
if [[ "${#filtered_cmds[@]}" == "0" ]]; then
echo -ne "\n Invalid command: [$cmd]\n\n"
return 1