diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-21 12:42:01 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-21 12:42:01 -0500 |
commit | fcdca80d7339c98a0799ba7e016b6b1984577fa6 (patch) | |
tree | 2ebc1a16fce9cbe532ba3c546bd024cda7e225c2 /functions/interpreter/vyatta-cfg-run | |
parent | cd6265138e4e041f7c95037bea6a63f8040daf6e (diff) | |
download | vyatta-cfg-fcdca80d7339c98a0799ba7e016b6b1984577fa6.tar.gz vyatta-cfg-fcdca80d7339c98a0799ba7e016b6b1984577fa6.zip |
Don't show an error message when we can't turn echo on
Diffstat (limited to 'functions/interpreter/vyatta-cfg-run')
-rw-r--r-- | functions/interpreter/vyatta-cfg-run | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/interpreter/vyatta-cfg-run b/functions/interpreter/vyatta-cfg-run index 29ac48a..524763d 100644 --- a/functions/interpreter/vyatta-cfg-run +++ b/functions/interpreter/vyatta-cfg-run @@ -507,9 +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. + stty echo 2> /dev/null # 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 |