Skip to contentSkip to conversation

Minor update for bash completion. Bash completion for ports is missing '-' for type. Based on documentation, it should be --type, not -type.

PATCH Applied Lee Stubbs 2 participants 2 messages Feb 18, 2018 – Feb 26, 2018 SELinux security module

lore
Share & tools
lore

Lee Stubbs

author
#0 lore raw

PATCH 1/1 Minor update for bash completion. Bash completion for ports is missing '-' for type. Based on documentation, it should be --type, not -type.

---
 python/semanage/semanage-bash-completion.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
python/semanage/semanage-bash-completion.sh +1 -1
index 6b53292..2d811c9 100644
@@ -59,7 +59,7 @@ __get_export_opts () { echo '$ALL_OPTS --f --output_file' ; }
 __get_boolean_opts () { echo '$ALL_OPTS --on -off -1 -0' ; }
 __get_user_opts () { echo '$ALL_OPTS $MANAGED_OPTS -L --level -r --range -R --role '; }
 __get_login_opts () { echo '$ALL_OPTS $MANAGED_OPTS -s --seuser -r --range'; }
-__get_port_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t -type -r --range -p --proto'; }
+__get_port_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -r --range -p --proto'; }
 __get_interface_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type '; }
 __get_node_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -M --mask -p --proto'; }
 __get_fcontext_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -e --equal -f --ftype '; }
Signature · 1 line
2.10.1 (Apple Git-78)
#1 lore raw
Quoted 9 lines · Lee Stubbs
---
 python/semanage/semanage-bash-completion.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
python/semanage/semanage-bash-completion.sh +0 -0
index 6b53292..2d811c9 100644

python/semanage/semanage-bash-completion.sh __get_export_opts () { echo '$ALL_OPTS --f --output_file' ; } · line 65

Quoted 8 lines
python/semanage/semanage-bash-completion.sh +1 -1
@@ -59,7 +59,7 @@ __get_export_opts () { echo '$ALL_OPTS --f --output_file' ; }
 __get_boolean_opts () { echo '$ALL_OPTS --on -off -1 -0' ; }
 __get_user_opts () { echo '$ALL_OPTS $MANAGED_OPTS -L --level -r --range -R --role '; }
 __get_login_opts () { echo '$ALL_OPTS $MANAGED_OPTS -s --seuser -r --range'; }
-__get_port_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t -type -r --range -p --proto'; }
+__get_port_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -r --range -p --proto'; }
 __get_interface_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type '; }
 __get_node_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -M --mask -p --proto'; }
 __get_fcontext_opts () { echo '$ALL_OPTS $MANAGED_OPTS -t --type -e --equal -f --ftype '; }

Thanks, applied