Clean up unneeded semicolons.
This commit is contained in:
parent
a593f4512a
commit
0bc2bb5897
@ -533,7 +533,7 @@ _get_cword()
|
|||||||
_get_pword()
|
_get_pword()
|
||||||
{
|
{
|
||||||
if [ $COMP_CWORD -ge 1 ]; then
|
if [ $COMP_CWORD -ge 1 ]; then
|
||||||
_get_cword "${@:-}" 1;
|
_get_cword "${@:-}" 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1618,7 +1618,7 @@ _command_offset()
|
|||||||
COMP_WORDS[i]=${COMP_WORDS[i+$word_offset]}
|
COMP_WORDS[i]=${COMP_WORDS[i+$word_offset]}
|
||||||
done
|
done
|
||||||
for (( i; i <= COMP_CWORD; i++ )); do
|
for (( i; i <= COMP_CWORD; i++ )); do
|
||||||
unset COMP_WORDS[i];
|
unset COMP_WORDS[i]
|
||||||
done
|
done
|
||||||
COMP_CWORD=$(( $COMP_CWORD - $word_offset ))
|
COMP_CWORD=$(( $COMP_CWORD - $word_offset ))
|
||||||
|
|
||||||
@ -1663,9 +1663,9 @@ _command_offset()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
cspec=${cspec#complete};
|
cspec=${cspec#complete}
|
||||||
cspec=${cspec%%$compcmd};
|
cspec=${cspec%%$compcmd}
|
||||||
COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) );
|
COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
elif [ ${#COMPREPLY[@]} -eq 0 ]; then
|
elif [ ${#COMPREPLY[@]} -eq 0 ]; then
|
||||||
_filedir
|
_filedir
|
||||||
|
@ -37,15 +37,15 @@ _hcitool()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-i)
|
-i)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
--role)
|
--role)
|
||||||
COMPREPLY=( $( compgen -W 'm s' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'm s' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
--pkt-type)
|
--pkt-type)
|
||||||
_bluetooth_packet_types
|
_bluetooth_packet_types
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ _sdptool()
|
|||||||
case $prev in
|
case $prev in
|
||||||
--bdaddr)
|
--bdaddr)
|
||||||
_bluetooth_adresses
|
_bluetooth_adresses
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ _l2ping()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-i)
|
-i)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -194,12 +194,12 @@ _rfcomm()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-f|--config)
|
-f|--config)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-i)
|
-i)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
_bluetooth_adresses
|
_bluetooth_adresses
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ _ciptool()
|
|||||||
-i)
|
-i)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
_bluetooth_adresses
|
_bluetooth_adresses
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -272,7 +272,7 @@ _dfutool()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-d|--device)
|
-d|--device)
|
||||||
_bluetooth_devices
|
_bluetooth_devices
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -59,8 +59,8 @@ _info()
|
|||||||
# weed out info dir file
|
# weed out info dir file
|
||||||
for (( i=0 ; i < ${#COMPREPLY[@]} ; ++i )); do
|
for (( i=0 ; i < ${#COMPREPLY[@]} ; ++i )); do
|
||||||
if [ "${COMPREPLY[$i]}" == 'dir' ]; then
|
if [ "${COMPREPLY[$i]}" == 'dir' ]; then
|
||||||
unset COMPREPLY[$i];
|
unset COMPREPLY[$i]
|
||||||
fi;
|
fi
|
||||||
done
|
done
|
||||||
# strip suffix from info pages
|
# strip suffix from info pages
|
||||||
COMPREPLY=( ${COMPREPLY[@]%.@(gz|bz2|xz|lzma)} )
|
COMPREPLY=( ${COMPREPLY[@]%.@(gz|bz2|xz|lzma)} )
|
||||||
|
@ -131,7 +131,7 @@ _muttfiledir()
|
|||||||
elif [ "$cur" == !* ]; then
|
elif [ "$cur" == !* ]; then
|
||||||
spoolfile="$( $muttcmd -F "$muttrc" -Q spoolfile | \
|
spoolfile="$( $muttcmd -F "$muttrc" -Q spoolfile | \
|
||||||
sed -e 's|^spoolfile=\"\(.*\)\"$|\1|' )"
|
sed -e 's|^spoolfile=\"\(.*\)\"$|\1|' )"
|
||||||
[ ! -z "$spoolfile" ] && eval cur="${cur/^!/$spoolfile}";
|
[ ! -z "$spoolfile" ] && eval cur="${cur/^!/$spoolfile}"
|
||||||
fi
|
fi
|
||||||
_filedir
|
_filedir
|
||||||
|
|
||||||
|
@ -11,19 +11,19 @@ _iscsiadm()
|
|||||||
-m|--mode)
|
-m|--mode)
|
||||||
COMPREPLY=( $( compgen -W 'discovery node session iface fw host' \
|
COMPREPLY=( $( compgen -W 'discovery node session iface fw host' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-o|--op)
|
-o|--op)
|
||||||
COMPREPLY=( $( compgen -W 'new delete update show' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'new delete update show' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-t|--type)
|
-t|--type)
|
||||||
COMPREPLY=( $( compgen -W 'sendtargets st slp isns fw' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'sendtargets st slp isns fw' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-L|-U|--loginall|--logoutall)
|
-L|-U|--loginall|--logoutall)
|
||||||
COMPREPLY=( $( compgen -W 'all manual automatic' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'all manual automatic' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -48,32 +48,32 @@ _smbclient()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-R|--name-resolve)
|
-R|--name-resolve)
|
||||||
_samba_resolve_order
|
_samba_resolve_order
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-t)
|
-t)
|
||||||
COMPREPLY=( $( compgen -W 'SJIS EUC JIS7 JIS8 JUNET HEX CAP' \
|
COMPREPLY=( $( compgen -W 'SJIS EUC JIS7 JIS8 JUNET HEX CAP' \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-s|--configfile|-A|--authentication-file)
|
-s|--configfile|-A|--authentication-file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-l|--log-basename|-D|--directory)
|
-l|--log-basename|-D|--directory)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-O|--socket-options)
|
-O|--socket-options)
|
||||||
_samba_sockopts
|
_samba_sockopts
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-T)
|
-T)
|
||||||
COMPREPLY=( $( compgen -W 'c x I X F b g q r N a' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W 'c x I X F b g q r N a' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-W|--workgroup)
|
-W|--workgroup)
|
||||||
_samba_domains
|
_samba_domains
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-d|--debuglevel)
|
-d|--debuglevel)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -115,7 +115,7 @@ _smbget()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-o|--outputfile|-f|--rcfile)
|
-o|--outputfile|-f|--rcfile)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-d|--debuglevel)
|
-d|--debuglevel)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -147,11 +147,11 @@ _smbcacls()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-s|--configfile|-A|--authentication-file)
|
-s|--configfile|-A|--authentication-file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-l|--log-basename)
|
-l|--log-basename)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-d|--debuglevel)
|
-d|--debuglevel)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -192,11 +192,11 @@ _smbcquotas()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-s|--configfile|-A|--authentication-file)
|
-s|--configfile|-A|--authentication-file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-l|--log-basename)
|
-l|--log-basename)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-d|--debuglevel)
|
-d|--debuglevel)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -228,15 +228,15 @@ _smbpasswd()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-r)
|
-r)
|
||||||
_samba_hosts
|
_samba_hosts
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-R)
|
-R)
|
||||||
_samba_resolve_order
|
_samba_resolve_order
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-c)
|
-c)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-D)
|
-D)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -261,11 +261,11 @@ _smbtar()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-r|-t)
|
-r|-t)
|
||||||
_filedir tar
|
_filedir tar
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-s)
|
-s)
|
||||||
_samba_hosts
|
_samba_hosts
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-l)
|
-l)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
@ -294,11 +294,11 @@ _smbtree()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-s|--configfile|-A|--authentication-file)
|
-s|--configfile|-A|--authentication-file)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-l|--log-basename)
|
-l|--log-basename)
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
-d|--debuglevel)
|
-d|--debuglevel)
|
||||||
_samba_debuglevel
|
_samba_debuglevel
|
||||||
|
@ -27,12 +27,12 @@ _svk()
|
|||||||
case $prev in
|
case $prev in
|
||||||
-F|--file|--targets)
|
-F|--file|--targets)
|
||||||
_filedir
|
_filedir
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
--encoding)
|
--encoding)
|
||||||
COMPREPLY=( $( compgen -W \
|
COMPREPLY=( $( compgen -W \
|
||||||
'$( iconv --list | sed -e "s@//@@;" )' -- "$cur" ) )
|
'$( iconv --list | sed -e "s@//@@;" )' -- "$cur" ) )
|
||||||
return 0;
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user