summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-07-14 18:49:09 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-07-15 11:59:04 -0500
commit63ce0b05d99225496f31ba9fd444ab2fefdc37e9 (patch)
tree133892a3e8e960568cfdd3a6925873bbf39eaaf8 /etc
parentb08d6b7d0cd2d62da49f3c76d220a6860240791e (diff)
downloadvyatta-cfg-63ce0b05d99225496f31ba9fd444ab2fefdc37e9.tar.gz
vyatta-cfg-63ce0b05d99225496f31ba9fd444ab2fefdc37e9.zip
Don't allow users to set migration comments
(cherry picked from commit 9f1ff5427e0f72f2bded287be6e1d4cf442945cb)
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg
index 776c56b..8626342 100755
--- a/etc/bash_completion.d/vyatta-cfg
+++ b/etc/bash_completion.d/vyatta-cfg
@@ -97,9 +97,9 @@ show ()
args+=("$arg")
fi
done
+ # Note: the sed command below is to fix bug 7331
cli-shell-api "${opts[@]}" -- showCfg "${args[@]}" \
- | sed -e '/--- CONFIGURATION COMMENTED OUT DURING MIGRATION BELOW ---/\
- ,/--- CONFIGURATION COMMENTED OUT DURING MIGRATION ABOVE ---/d'\
+ | sed -e '/--- CONFIGURATION COMMENTED OUT DURING MIGRATION BELOW ---/,/--- CONFIGURATION COMMENTED OUT DURING MIGRATION ABOVE ---/d'\
| eval "${VYATTA_PAGER:-cat}"
}