diff --git a/usr.sbin/bsdconfig/bsdconfig b/usr.sbin/bsdconfig/bsdconfig index 7a9fb2927b92..e290c760caf6 100755 --- a/usr.sbin/bsdconfig/bsdconfig +++ b/usr.sbin/bsdconfig/bsdconfig @@ -340,7 +340,7 @@ while :; do f_getvar menu_program$mtag menu_program case "$menu_program" in - /*) cmd="$menu_program";; + /*) cmd="$menu_program" ;; *) cmd="$BSDCFG_LIBE/$menu_program" esac f_dprintf "cmd=[%s]" "$cmd" diff --git a/usr.sbin/bsdconfig/console/console b/usr.sbin/bsdconfig/console/console index 7fa97b76a58a..9e02a29aff10 100755 --- a/usr.sbin/bsdconfig/console/console +++ b/usr.sbin/bsdconfig/console/console @@ -102,7 +102,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/font b/usr.sbin/bsdconfig/console/font index aedd0b4ca23d..e19362b0a1b0 100755 --- a/usr.sbin/bsdconfig/console/font +++ b/usr.sbin/bsdconfig/console/font @@ -122,7 +122,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/keymap b/usr.sbin/bsdconfig/console/keymap index e81176fa7068..97f32ba8ae0d 100755 --- a/usr.sbin/bsdconfig/console/keymap +++ b/usr.sbin/bsdconfig/console/keymap @@ -221,7 +221,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/repeat b/usr.sbin/bsdconfig/console/repeat index 838403b86a5b..b866acf32949 100755 --- a/usr.sbin/bsdconfig/console/repeat +++ b/usr.sbin/bsdconfig/console/repeat @@ -102,7 +102,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/saver b/usr.sbin/bsdconfig/console/saver index 912fd4ac6727..3b7407cffab0 100755 --- a/usr.sbin/bsdconfig/console/saver +++ b/usr.sbin/bsdconfig/console/saver @@ -121,7 +121,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/screenmap b/usr.sbin/bsdconfig/console/screenmap index 94e5ba8544d0..74881b9697ba 100755 --- a/usr.sbin/bsdconfig/console/screenmap +++ b/usr.sbin/bsdconfig/console/screenmap @@ -106,7 +106,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/console/ttys b/usr.sbin/bsdconfig/console/ttys index 5e8d28a0f49e..4ad1b2b2de06 100755 --- a/usr.sbin/bsdconfig/console/ttys +++ b/usr.sbin/bsdconfig/console/ttys @@ -174,7 +174,7 @@ ttys_set_type() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/diskmgmt/diskmgmt b/usr.sbin/bsdconfig/diskmgmt/diskmgmt index 6321a92f615f..662b88699bb8 100755 --- a/usr.sbin/bsdconfig/diskmgmt/diskmgmt +++ b/usr.sbin/bsdconfig/diskmgmt/diskmgmt @@ -58,7 +58,7 @@ X11TERM_OPTS= # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/docsinstall/docsinstall b/usr.sbin/bsdconfig/docsinstall/docsinstall index 4163a4c41b65..8e8e746abb7e 100755 --- a/usr.sbin/bsdconfig/docsinstall/docsinstall +++ b/usr.sbin/bsdconfig/docsinstall/docsinstall @@ -58,7 +58,7 @@ X11TERM_OPTS= # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/dot/dot b/usr.sbin/bsdconfig/dot/dot index 63daf1d80652..0ecf82005c98 100755 --- a/usr.sbin/bsdconfig/dot/dot +++ b/usr.sbin/bsdconfig/dot/dot @@ -94,8 +94,8 @@ print_node() shift 1 # node case "$node" in - edge) printf '\t\t%s' "$node";; - *) printf '\t\t"%s"' "$node";; + edge) printf '\t\t%s' "$node" ;; + *) printf '\t\t"%s"' "$node" ;; esac if [ $# -gt 0 ]; then @@ -155,10 +155,10 @@ end_nodelist() # while getopts cdhi flag; do case "$flag" in - i) SHOW_INCLUDES=;; - d) SHOW_GRAPH_LABEL_DATE=;; - c) SHOW_CMDLINE=;; - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + i) SHOW_INCLUDES= ;; + d) SHOW_GRAPH_LABEL_DATE= ;; + c) SHOW_CMDLINE= ;; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) @@ -611,7 +611,7 @@ for INDEX in */INDEX; do printf '\tsubgraph "cluster_%s" {\n' "$item" case "$item" in - [0-9][0-9][0-9].*) bgcolor="$bgcolor_menuitem";; + [0-9][0-9][0-9].*) bgcolor="$bgcolor_menuitem" ;; *) bgcolor="$bgcolor_shortcuts" esac printf '\t\tbgcolor = "%s";\n' "$bgcolor" diff --git a/usr.sbin/bsdconfig/mouse/disable b/usr.sbin/bsdconfig/mouse/disable index 2ebe5a968df3..edbfa8953dcc 100755 --- a/usr.sbin/bsdconfig/mouse/disable +++ b/usr.sbin/bsdconfig/mouse/disable @@ -58,7 +58,7 @@ MOUSED_PIDFILE=/var/run/moused.pid # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/mouse/enable b/usr.sbin/bsdconfig/mouse/enable index d33f1196f987..8d4478128c8a 100755 --- a/usr.sbin/bsdconfig/mouse/enable +++ b/usr.sbin/bsdconfig/mouse/enable @@ -58,7 +58,7 @@ MOUSED_PIDFILE=/var/run/moused.pid # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/mouse/flags b/usr.sbin/bsdconfig/mouse/flags index 4d646d3a6034..a6de9707d802 100755 --- a/usr.sbin/bsdconfig/mouse/flags +++ b/usr.sbin/bsdconfig/mouse/flags @@ -58,7 +58,7 @@ MOUSED_PIDFILE=/var/run/moused.pid # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/mouse/mouse b/usr.sbin/bsdconfig/mouse/mouse index 33d1a6c0685e..7f6dae505a68 100755 --- a/usr.sbin/bsdconfig/mouse/mouse +++ b/usr.sbin/bsdconfig/mouse/mouse @@ -101,7 +101,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/mouse/port b/usr.sbin/bsdconfig/mouse/port index 8900923bf130..b44efcbe34bf 100755 --- a/usr.sbin/bsdconfig/mouse/port +++ b/usr.sbin/bsdconfig/mouse/port @@ -106,7 +106,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/mouse/type b/usr.sbin/bsdconfig/mouse/type index c290eb42b000..541495a45b71 100755 --- a/usr.sbin/bsdconfig/mouse/type +++ b/usr.sbin/bsdconfig/mouse/type @@ -114,7 +114,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/defaultrouter b/usr.sbin/bsdconfig/networking/defaultrouter index 5b8ebdc74c67..6f3719496f11 100755 --- a/usr.sbin/bsdconfig/networking/defaultrouter +++ b/usr.sbin/bsdconfig/networking/defaultrouter @@ -51,7 +51,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/devices b/usr.sbin/bsdconfig/networking/devices index 9da736ec8c09..c19d0a201c63 100755 --- a/usr.sbin/bsdconfig/networking/devices +++ b/usr.sbin/bsdconfig/networking/devices @@ -56,7 +56,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/hostname b/usr.sbin/bsdconfig/networking/hostname index 55cc4381bde9..4faa3b0743f1 100755 --- a/usr.sbin/bsdconfig/networking/hostname +++ b/usr.sbin/bsdconfig/networking/hostname @@ -54,7 +54,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/nameservers b/usr.sbin/bsdconfig/networking/nameservers index d1b8123552d3..d83c8247b047 100755 --- a/usr.sbin/bsdconfig/networking/nameservers +++ b/usr.sbin/bsdconfig/networking/nameservers @@ -54,7 +54,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/networking b/usr.sbin/bsdconfig/networking/networking index 36122caa0768..f73d4d2ccc28 100755 --- a/usr.sbin/bsdconfig/networking/networking +++ b/usr.sbin/bsdconfig/networking/networking @@ -100,7 +100,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/networking/share/device.subr b/usr.sbin/bsdconfig/networking/share/device.subr index 37ec9f191260..133bca0d91a5 100644 --- a/usr.sbin/bsdconfig/networking/share/device.subr +++ b/usr.sbin/bsdconfig/networking/share/device.subr @@ -261,7 +261,7 @@ f_dialog_menu_netdev_edit() # read and display in the summary dialog. # case "$tag" in - X\ *) break;; + X\ *) break ;; 2\ *) # # Do not proceed if/when there are NFS-mounts currently # active. If the network is changed while NFS-exported @@ -313,11 +313,11 @@ f_dialog_menu_netdev_edit() fi ;; 3\ *) f_dialog_input_ipaddr "$interface" "$ipaddr" - [ $? -eq $SUCCESS ] && dhcp=;; + [ $? -eq $SUCCESS ] && dhcp= ;; 4\ *) f_dialog_input_netmask "$interface" "$netmask" - [ $? -eq $SUCCESS -a "$_netmask" ] && dhcp=;; + [ $? -eq $SUCCESS -a "$_netmask" ] && dhcp= ;; 5\ *) f_dialog_menu_media_options "$interface" "$options" - [ $? -eq $SUCCESS ] && dhcp=;; + [ $? -eq $SUCCESS ] && dhcp= ;; esac done diff --git a/usr.sbin/bsdconfig/networking/share/hostname.subr b/usr.sbin/bsdconfig/networking/share/hostname.subr index 9ffa42ea07eb..1934ee118820 100644 --- a/usr.sbin/bsdconfig/networking/share/hostname.subr +++ b/usr.sbin/bsdconfig/networking/share/hostname.subr @@ -53,11 +53,12 @@ f_dialog_hnerror() [ ${error:-0} -ne 0 ] || return $SUCCESS case "$error" in - 1) f_show_msg "$msg_hostname_label_contains_invalid_chars" "$fqhn";; - 2) f_show_msg "$msg_hostname_label_starts_or_ends_with_hyphen" "$fqhn";; - 3) f_show_msg "$msg_hostname_label_is_null" "$fqhn";; - 63) f_show_msg "$msg_hostname_label_exceeds_max_length" "$fqhn";; - 255) f_show_msg "$msg_hostname_exceeds_max_length" "$fqhn";; + 1) f_show_msg "$msg_hostname_label_contains_invalid_chars" "$fqhn" ;; + 2) f_show_msg \ + "$msg_hostname_label_starts_or_ends_with_hyphen" "$fqhn" ;; + 3) f_show_msg "$msg_hostname_label_is_null" "$fqhn" ;; + 63) f_show_msg "$msg_hostname_label_exceeds_max_length" "$fqhn" ;; + 255) f_show_msg "$msg_hostname_exceeds_max_length" "$fqhn" ;; esac } diff --git a/usr.sbin/bsdconfig/networking/share/ipaddr.subr b/usr.sbin/bsdconfig/networking/share/ipaddr.subr index 9d95b30c8e4a..68d0ec12f358 100644 --- a/usr.sbin/bsdconfig/networking/share/ipaddr.subr +++ b/usr.sbin/bsdconfig/networking/share/ipaddr.subr @@ -52,10 +52,10 @@ f_dialog_iperror() [ ${error:-0} -ne 0 ] || return $SUCCESS case "$error" in - 1) f_show_msg "$msg_ipv4_addr_octet_contains_invalid_chars" "$ip";; - 2) f_show_msg "$msg_ipv4_addr_octet_is_null" "$ip";; - 3) f_show_msg "$msg_ipv4_addr_octet_exceeds_max_value" "$ip";; - 4) f_show_msg "$msg_ipv4_addr_octet_missing_or_extra" "$ip";; + 1) f_show_msg "$msg_ipv4_addr_octet_contains_invalid_chars" "$ip" ;; + 2) f_show_msg "$msg_ipv4_addr_octet_is_null" "$ip" ;; + 3) f_show_msg "$msg_ipv4_addr_octet_exceeds_max_value" "$ip" ;; + 4) f_show_msg "$msg_ipv4_addr_octet_missing_or_extra" "$ip" ;; esac } @@ -91,10 +91,10 @@ f_dialog_ip6error() [ ${error:-0} -ne 0 ] || return $SUCCESS case "$error" in - 1) f_show_msg "$msg_ipv6_addr_segment_contains_invalid_chars" "$ip";; - 2) f_show_msg "$msg_ipv6_addr_too_many_null_segments" "$ip";; - 3) f_show_msg "$msg_ipv6_addr_segment_contains_too_many_chars" "$ip";; - 4) f_show_msg "$msg_ipv6_addr_too_few_or_extra_segments" "$ip";; + 1) f_show_msg "$msg_ipv6_addr_segment_contains_invalid_chars" "$ip" ;; + 2) f_show_msg "$msg_ipv6_addr_too_many_null_segments" "$ip" ;; + 3) f_show_msg "$msg_ipv6_addr_segment_contains_too_many_chars" "$ip" ;; + 4) f_show_msg "$msg_ipv6_addr_too_few_or_extra_segments" "$ip" ;; *) if [ $(( $error & 0xF )) -eq 5 ]; then # IPv4 at the end of IPv6 address is invalid diff --git a/usr.sbin/bsdconfig/networking/share/media.subr b/usr.sbin/bsdconfig/networking/share/media.subr index ad467d8e5cec..22073d72de26 100644 --- a/usr.sbin/bsdconfig/networking/share/media.subr +++ b/usr.sbin/bsdconfig/networking/share/media.subr @@ -68,7 +68,7 @@ f_ifconfig_options() output= while [ $# -gt 0 ]; do case "$1" in - inet|netmask) shift 1;; + inet|netmask) shift 1 ;; *) output="$output${output:+ }$1" esac shift 1 diff --git a/usr.sbin/bsdconfig/networking/share/netmask.subr b/usr.sbin/bsdconfig/networking/share/netmask.subr index c52fb37ef774..5a4c7a3ba5a6 100644 --- a/usr.sbin/bsdconfig/networking/share/netmask.subr +++ b/usr.sbin/bsdconfig/networking/share/netmask.subr @@ -52,11 +52,11 @@ f_dialog_maskerror() [ ${error:-0} -ne 0 ] || return $SUCCESS case "$error" in - 1) f_show_msg "$msg_ipv4_mask_field_contains_invalid_chars" "$mask";; - 2) f_show_msg "$msg_ipv4_mask_field_is_null" "$mask";; - 3) f_show_msg "$msg_ipv4_mask_field_exceeds_max_value" "$mask";; - 4) f_show_msg "$msg_ipv4_mask_field_missing_or_extra" "$mask";; - 5) f_show_msg "$msg_ipv4_mask_field_invalid_value" "$mask";; + 1) f_show_msg "$msg_ipv4_mask_field_contains_invalid_chars" "$mask" ;; + 2) f_show_msg "$msg_ipv4_mask_field_is_null" "$mask" ;; + 3) f_show_msg "$msg_ipv4_mask_field_exceeds_max_value" "$mask" ;; + 4) f_show_msg "$msg_ipv4_mask_field_missing_or_extra" "$mask" ;; + 5) f_show_msg "$msg_ipv4_mask_field_invalid_value" "$mask" ;; esac } diff --git a/usr.sbin/bsdconfig/networking/share/resolv.subr b/usr.sbin/bsdconfig/networking/share/resolv.subr index 2a1218ae1f5c..866f34538e98 100644 --- a/usr.sbin/bsdconfig/networking/share/resolv.subr +++ b/usr.sbin/bsdconfig/networking/share/resolv.subr @@ -370,11 +370,11 @@ f_dialog_input_nameserver() # local retval=$? case $retval in - 1) f_die 1 "$msg_internal_error_nsindex_value" "$nsindex";; + 1) f_die 1 "$msg_internal_error_nsindex_value" "$nsindex" ;; 2) f_dialog_msgbox "$msg_resolv_conf_changed_while_editing" - return $retval;; + return $retval ;; 3) f_dialog_msgbox "$msg_resolv_conf_entry_no_longer_exists" - return $retval;; + return $retval ;; esac # @@ -460,7 +460,7 @@ f_dialog_menu_nameservers() fi case "$tag" in - "X $msg_exit") break;; + "X $msg_exit") break ;; "A $msg_add") f_dialog_input_nameserver ;; diff --git a/usr.sbin/bsdconfig/packages/packages b/usr.sbin/bsdconfig/packages/packages index 944cc98b3dfc..750eed402e0f 100755 --- a/usr.sbin/bsdconfig/packages/packages +++ b/usr.sbin/bsdconfig/packages/packages @@ -57,7 +57,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/password/password b/usr.sbin/bsdconfig/password/password index 937e07ac4cf1..2a69dfdbcc57 100755 --- a/usr.sbin/bsdconfig/password/password +++ b/usr.sbin/bsdconfig/password/password @@ -57,7 +57,7 @@ USER_ROOT=root # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/security/kern_securelevel b/usr.sbin/bsdconfig/security/kern_securelevel index bc622668cd55..633c93578717 100755 --- a/usr.sbin/bsdconfig/security/kern_securelevel +++ b/usr.sbin/bsdconfig/security/kern_securelevel @@ -111,7 +111,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/security/security b/usr.sbin/bsdconfig/security/security index ef566054819f..b2ff4ff8a429 100755 --- a/usr.sbin/bsdconfig/security/security +++ b/usr.sbin/bsdconfig/security/security @@ -138,7 +138,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/share/common.subr b/usr.sbin/bsdconfig/share/common.subr index b005ebeeba42..32d6abaeacd6 100644 --- a/usr.sbin/bsdconfig/share/common.subr +++ b/usr.sbin/bsdconfig/share/common.subr @@ -144,8 +144,8 @@ f_debug_init() while getopts "$GETOPTS_STDARGS$GETOPTS_EXTRA$GETOPTS_ALLFLAGS" flag \ > /dev/null; do case "$flag" in - d) debug=1;; - D) debugFile="$OPTARG";; + d) debug=1 ;; + D) debugFile="$OPTARG" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/share/device.subr b/usr.sbin/bsdconfig/share/device.subr index eb1af5aef991..5d13061e2dc0 100644 --- a/usr.sbin/bsdconfig/share/device.subr +++ b/usr.sbin/bsdconfig/share/device.subr @@ -486,11 +486,11 @@ f_device_desc() # Sensible fall-backs for specific types # case "$__type" in - $DEVICE_TYPE_CDROM) __cp="";; - $DEVICE_TYPE_DISK) __cp="";; - $DEVICE_TYPE_FLOPPY) __cp="";; - $DEVICE_TYPE_USB) __cp="";; - $DEVICE_TYPE_NETWORK) __cp="";; + $DEVICE_TYPE_CDROM) __cp="" ;; + $DEVICE_TYPE_DISK) __cp="" ;; + $DEVICE_TYPE_FLOPPY) __cp="" ;; + $DEVICE_TYPE_USB) __cp="" ;; + $DEVICE_TYPE_NETWORK) __cp="" ;; *) __cp="" esac diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr index b089655aa19d..62954b8abd0e 100644 --- a/usr.sbin/bsdconfig/share/dialog.subr +++ b/usr.sbin/bsdconfig/share/dialog.subr @@ -2026,7 +2026,7 @@ f_dialog_init() "$GETOPTS_STDARGS$GETOPTS_EXTRA$GETOPTS_ALLFLAGS" \ flag > /dev/null; do case "$flag" in - S) echo 1;; + S) echo 1 ;; esac done ) @@ -2035,7 +2035,7 @@ f_dialog_init() "$GETOPTS_STDARGS$GETOPTS_EXTRA$GETOPTS_ALLFLAGS" \ flag > /dev/null; do case "$flag" in - S|X) echo 1;; + S|X) echo 1 ;; esac done ) diff --git a/usr.sbin/bsdconfig/share/media/tcpip.subr b/usr.sbin/bsdconfig/share/media/tcpip.subr index 6a02a4f1580f..0daada61250d 100644 --- a/usr.sbin/bsdconfig/share/media/tcpip.subr +++ b/usr.sbin/bsdconfig/share/media/tcpip.subr @@ -411,8 +411,8 @@ f_validate_netmask() # Return error if the field is an invalid integer case "$field" in - 0|128|192|224|240|248|252|254|255) :;; - *) return 5;; + 0|128|192|224|240|248|252|254|255) : ;; + *) return 5 ;; esac nfields=$(( $nfields + 1 )) diff --git a/usr.sbin/bsdconfig/share/packages/packages.subr b/usr.sbin/bsdconfig/share/packages/packages.subr index c8673d732430..388fd24124bf 100755 --- a/usr.sbin/bsdconfig/share/packages/packages.subr +++ b/usr.sbin/bsdconfig/share/packages/packages.subr @@ -197,7 +197,7 @@ f_package_calculate_totals() f_getvar _mark_$varpkg mark case "$mark" in ""|" ") : ;; - X) tinstalled=$(( $tinstalled + 1 ));; + X) tinstalled=$(( $tinstalled + 1 )) ;; *) tselected=$(( $tselected + 1 )) esac f_getvar _categories_$varpkg pkgcat @@ -206,7 +206,7 @@ f_package_calculate_totals() case "$mark" in ""|" ") : ;; X) debug= f_getvar _${varcat}_ninstalled n - setvar _${varcat}_ninstalled $(( $n + 1 ));; + setvar _${varcat}_ninstalled $(( $n + 1 )) ;; *) debug= f_getvar _${varcat}_nselected n setvar _${varcat}_nselected $(( $n + 1 )) esac @@ -381,7 +381,7 @@ f_package_menu_select() # Get number of packages for this category local npkgs=0 case "$category" in - "$msg_all"|"") npkgs="${_npkgs:-0}";; + "$msg_all"|"") npkgs="${_npkgs:-0}" ;; *) f_getvar _npkgs_$varcat npkgs esac diff --git a/usr.sbin/bsdconfig/share/sysrc.subr b/usr.sbin/bsdconfig/share/sysrc.subr index 36a550e28983..da5bc04a1761 100644 --- a/usr.sbin/bsdconfig/share/sysrc.subr +++ b/usr.sbin/bsdconfig/share/sysrc.subr @@ -135,7 +135,7 @@ f_sysrc_get() case "$1" in [0-9]*) # Don't expand possible positional parameters - return $FAILURE;; + return $FAILURE ;; *) [ "$1" ] || return $FAILURE esac @@ -218,7 +218,7 @@ f_sysrc_get_default() case "$1" in [0-9]*) # Don't expand possible positional parameters - return $FAILURE;; + return $FAILURE ;; *) [ "$1" ] || return $FAILURE esac diff --git a/usr.sbin/bsdconfig/startup/misc b/usr.sbin/bsdconfig/startup/misc index ca83a331afa4..f79feb1949b1 100755 --- a/usr.sbin/bsdconfig/startup/misc +++ b/usr.sbin/bsdconfig/startup/misc @@ -325,7 +325,7 @@ dialog_input_value() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/rcadd b/usr.sbin/bsdconfig/startup/rcadd index 4a591f49f87a..02047c07898a 100755 --- a/usr.sbin/bsdconfig/startup/rcadd +++ b/usr.sbin/bsdconfig/startup/rcadd @@ -99,7 +99,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/rcconf b/usr.sbin/bsdconfig/startup/rcconf index d0bf65610ed3..c2c1665b44a2 100755 --- a/usr.sbin/bsdconfig/startup/rcconf +++ b/usr.sbin/bsdconfig/startup/rcconf @@ -210,7 +210,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/rcdelete b/usr.sbin/bsdconfig/startup/rcdelete index 29beb50cb524..103dffeebd21 100755 --- a/usr.sbin/bsdconfig/startup/rcdelete +++ b/usr.sbin/bsdconfig/startup/rcdelete @@ -316,7 +316,7 @@ dialog_menu_confirm_delete() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/rcedit b/usr.sbin/bsdconfig/startup/rcedit index 290b2150692b..de7f32100342 100755 --- a/usr.sbin/bsdconfig/startup/rcedit +++ b/usr.sbin/bsdconfig/startup/rcedit @@ -51,7 +51,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/rcvar b/usr.sbin/bsdconfig/startup/rcvar index 784c433a358c..5035eab9b10f 100755 --- a/usr.sbin/bsdconfig/startup/rcvar +++ b/usr.sbin/bsdconfig/startup/rcvar @@ -178,7 +178,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/startup/startup b/usr.sbin/bsdconfig/startup/startup index e9b0e9b12fa8..d62c3e7c2f24 100755 --- a/usr.sbin/bsdconfig/startup/startup +++ b/usr.sbin/bsdconfig/startup/startup @@ -99,7 +99,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/timezone/timezone b/usr.sbin/bsdconfig/timezone/timezone index e9112f573f29..55663f293e50 100755 --- a/usr.sbin/bsdconfig/timezone/timezone +++ b/usr.sbin/bsdconfig/timezone/timezone @@ -127,14 +127,14 @@ dialog_menu_main() # while getopts C:ehnrsv$GETOPTS_STDARGS flag; do case "$flag" in - C) CHROOTENV="$OPTARG";; - e) TZ_OR_FAIL=1;; - n) REALLYDOIT=;; + C) CHROOTENV="$OPTARG" ;; + e) TZ_OR_FAIL=1 ;; + n) REALLYDOIT= ;; r) REINSTALL=1 - USEDIALOG=;; - s) SKIPUTC=1;; - v) VERBOSE=1;; - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + USEDIALOG= ;; + s) SKIPUTC=1 ;; + v) VERBOSE=1 ;; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/ttys/ttys b/usr.sbin/bsdconfig/ttys/ttys index 64d776c71777..96bf22aa52e9 100755 --- a/usr.sbin/bsdconfig/ttys/ttys +++ b/usr.sbin/bsdconfig/ttys/ttys @@ -69,7 +69,7 @@ ETC_TTYS=/etc/ttys # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/groupadd b/usr.sbin/bsdconfig/usermgmt/groupadd index 0eed353729fa..6f806a65a8af 100755 --- a/usr.sbin/bsdconfig/usermgmt/groupadd +++ b/usr.sbin/bsdconfig/usermgmt/groupadd @@ -49,7 +49,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/groupdel b/usr.sbin/bsdconfig/usermgmt/groupdel index 00e10784bce0..30762168eed7 100755 --- a/usr.sbin/bsdconfig/usermgmt/groupdel +++ b/usr.sbin/bsdconfig/usermgmt/groupdel @@ -52,7 +52,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/groupedit b/usr.sbin/bsdconfig/usermgmt/groupedit index 032d656f8b6a..1f1c744d62ca 100755 --- a/usr.sbin/bsdconfig/usermgmt/groupedit +++ b/usr.sbin/bsdconfig/usermgmt/groupedit @@ -52,7 +52,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/groupinput b/usr.sbin/bsdconfig/usermgmt/groupinput index 261758b46499..f84f61809cf4 100755 --- a/usr.sbin/bsdconfig/usermgmt/groupinput +++ b/usr.sbin/bsdconfig/usermgmt/groupinput @@ -139,8 +139,8 @@ while [ $# -gt 0 ]; do value="${1#*=}" f_dprintf "key=[%s] value=[%s]" "$key" "$value" case "$key" in - mode) mode="$value";; - group) group="$value";; + mode) mode="$value" ;; + group) group="$value" ;; esac shift done diff --git a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr index 64a020dbb16d..7cdd2f0c1d91 100644 --- a/usr.sbin/bsdconfig/usermgmt/share/user_input.subr +++ b/usr.sbin/bsdconfig/usermgmt/share/user_input.subr @@ -590,9 +590,9 @@ f_dialog_input_expire_password() f_dprintf "ret_days=[%s]" "$ret_days" case "$ret_days" in - [-+]*) _input=$( date -v${ret_days}d +%s );; - 0) _input=$( date +%s );; - *) _input=$( date -v+${ret_days}d +%s );; + [-+]*) _input=$( date -v${ret_days}d +%s ) ;; + 0) _input=$( date +%s ) ;; + *) _input=$( date -v+${ret_days}d +%s ) ;; esac f_dprintf "_input=[%s]" "$_input" break ;; @@ -775,9 +775,9 @@ f_dialog_input_expire_account() f_dprintf "ret_days=[%s]" "$ret_days" case "$ret_days" in - [-+]*) _input=$( date -v${ret_days}d +%s );; - 0) _input=$( date +%s );; - *) _input=$( date -v+${ret_days}d +%s );; + [-+]*) _input=$( date -v${ret_days}d +%s ) ;; + 0) _input=$( date +%s ) ;; + *) _input=$( date -v+${ret_days}d +%s ) ;; esac f_dprintf "_input=[%s]" "$_input" break ;; diff --git a/usr.sbin/bsdconfig/usermgmt/useradd b/usr.sbin/bsdconfig/usermgmt/useradd index 113caaa06762..b8cac27ba4e3 100755 --- a/usr.sbin/bsdconfig/usermgmt/useradd +++ b/usr.sbin/bsdconfig/usermgmt/useradd @@ -49,7 +49,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/userdel b/usr.sbin/bsdconfig/usermgmt/userdel index 73357bd88a1a..f2664979885c 100755 --- a/usr.sbin/bsdconfig/usermgmt/userdel +++ b/usr.sbin/bsdconfig/usermgmt/userdel @@ -52,7 +52,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/useredit b/usr.sbin/bsdconfig/usermgmt/useredit index e34fd2ecad38..64b7b8e2fc82 100755 --- a/usr.sbin/bsdconfig/usermgmt/useredit +++ b/usr.sbin/bsdconfig/usermgmt/useredit @@ -52,7 +52,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 )) diff --git a/usr.sbin/bsdconfig/usermgmt/userinput b/usr.sbin/bsdconfig/usermgmt/userinput index fcf6fb52cef2..06221e156658 100755 --- a/usr.sbin/bsdconfig/usermgmt/userinput +++ b/usr.sbin/bsdconfig/usermgmt/userinput @@ -220,8 +220,8 @@ while [ $# -gt 0 ]; do value="${1#*=}" f_dprintf "key=[%s] value=[%s]" "$key" "$value" case "$key" in - mode) mode="$value";; - user) user="$value";; + mode) mode="$value" ;; + user) user="$value" ;; esac shift done diff --git a/usr.sbin/bsdconfig/usermgmt/usermgmt b/usr.sbin/bsdconfig/usermgmt/usermgmt index b7d36b92bda3..0a4c160b35bb 100755 --- a/usr.sbin/bsdconfig/usermgmt/usermgmt +++ b/usr.sbin/bsdconfig/usermgmt/usermgmt @@ -115,7 +115,7 @@ dialog_menu_main() # while getopts h$GETOPTS_STDARGS flag; do case "$flag" in - h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; + h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm" ;; esac done shift $(( $OPTIND - 1 ))