cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,write: Deprecate on Linux in favor of util-linux ones (Debian: #737672)
This commit is contained in:
parent
bb768978ba
commit
e452f2e8d6
@ -59,7 +59,7 @@ complete -d pushd
|
|||||||
# start of section containing compspecs that can be handled within bash
|
# start of section containing compspecs that can be handled within bash
|
||||||
|
|
||||||
# user commands see only users
|
# user commands see only users
|
||||||
complete -u write chfn groups slay w sux runuser
|
complete -u groups slay w sux
|
||||||
|
|
||||||
# bg completes with stopped jobs
|
# bg completes with stopped jobs
|
||||||
complete -A stopped -P '"%' -S '"' bg
|
complete -A stopped -P '"%' -S '"' bg
|
||||||
|
@ -31,7 +31,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
btdownloadheadless.py \
|
btdownloadheadless.py \
|
||||||
bts \
|
bts \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
cal \
|
_cal \
|
||||||
cancel \
|
cancel \
|
||||||
cardctl \
|
cardctl \
|
||||||
ccache \
|
ccache \
|
||||||
@ -41,13 +41,14 @@ bashcomp_DATA = 2to3 \
|
|||||||
change_pw \
|
change_pw \
|
||||||
check_db \
|
check_db \
|
||||||
check_perms \
|
check_perms \
|
||||||
|
_chfn \
|
||||||
chgrp \
|
chgrp \
|
||||||
chkconfig \
|
chkconfig \
|
||||||
chown \
|
chown \
|
||||||
chpasswd \
|
chpasswd \
|
||||||
chronyc \
|
chronyc \
|
||||||
chrpath \
|
chrpath \
|
||||||
chsh \
|
_chsh \
|
||||||
cksfv \
|
cksfv \
|
||||||
cleanarch \
|
cleanarch \
|
||||||
clisp \
|
clisp \
|
||||||
@ -69,7 +70,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
desktop-file-validate \
|
desktop-file-validate \
|
||||||
dhclient \
|
dhclient \
|
||||||
dict \
|
dict \
|
||||||
dmesg \
|
_dmesg \
|
||||||
dnsspoof \
|
dnsspoof \
|
||||||
dot \
|
dot \
|
||||||
dpkg \
|
dpkg \
|
||||||
@ -80,7 +81,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
dumpe2fs \
|
dumpe2fs \
|
||||||
e2freefrag \
|
e2freefrag \
|
||||||
e2label \
|
e2label \
|
||||||
eject \
|
_eject \
|
||||||
eog \
|
eog \
|
||||||
ether-wake \
|
ether-wake \
|
||||||
evince \
|
evince \
|
||||||
@ -125,7 +126,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
gzip \
|
gzip \
|
||||||
hcitool \
|
hcitool \
|
||||||
hddtemp \
|
hddtemp \
|
||||||
hexdump \
|
_hexdump \
|
||||||
hid2hci \
|
hid2hci \
|
||||||
hping2 \
|
hping2 \
|
||||||
htop \
|
htop \
|
||||||
@ -183,7 +184,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
list_lists \
|
list_lists \
|
||||||
list_members \
|
list_members \
|
||||||
list_owners \
|
list_owners \
|
||||||
look \
|
_look \
|
||||||
lpq \
|
lpq \
|
||||||
lpr \
|
lpr \
|
||||||
lrzip \
|
lrzip \
|
||||||
@ -233,7 +234,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
nc \
|
nc \
|
||||||
ncftp \
|
ncftp \
|
||||||
nethogs \
|
nethogs \
|
||||||
newgrp \
|
_newgrp \
|
||||||
newlist \
|
newlist \
|
||||||
newusers \
|
newusers \
|
||||||
ngrep \
|
ngrep \
|
||||||
@ -293,7 +294,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
rdesktop \
|
rdesktop \
|
||||||
remove_members \
|
remove_members \
|
||||||
removepkg \
|
removepkg \
|
||||||
renice \
|
_renice \
|
||||||
_repomanage \
|
_repomanage \
|
||||||
reportbug \
|
reportbug \
|
||||||
reptyr \
|
reptyr \
|
||||||
@ -310,6 +311,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
rrdtool \
|
rrdtool \
|
||||||
rsync \
|
rsync \
|
||||||
_rtcwake \
|
_rtcwake \
|
||||||
|
_runuser \
|
||||||
sbcl \
|
sbcl \
|
||||||
sbopkg \
|
sbopkg \
|
||||||
screen \
|
screen \
|
||||||
@ -332,7 +334,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
sshow \
|
sshow \
|
||||||
strace \
|
strace \
|
||||||
strings \
|
strings \
|
||||||
su \
|
_su \
|
||||||
sudo \
|
sudo \
|
||||||
svcadm \
|
svcadm \
|
||||||
svk \
|
svk \
|
||||||
@ -376,6 +378,7 @@ bashcomp_DATA = 2to3 \
|
|||||||
withlist \
|
withlist \
|
||||||
wodim \
|
wodim \
|
||||||
wol \
|
wol \
|
||||||
|
_write \
|
||||||
wsimport \
|
wsimport \
|
||||||
wtf \
|
wtf \
|
||||||
wvdial \
|
wvdial \
|
||||||
@ -640,7 +643,7 @@ symlinks: $(targetdir) $(DATA)
|
|||||||
done
|
done
|
||||||
for file in ncal ; do \
|
for file in ncal ; do \
|
||||||
rm -f $(targetdir)/$$file && \
|
rm -f $(targetdir)/$$file && \
|
||||||
$(LN_S) cal $(targetdir)/$$file ; \
|
$(LN_S) _cal $(targetdir)/$$file ; \
|
||||||
done
|
done
|
||||||
for file in pccardctl ; do \
|
for file in pccardctl ; do \
|
||||||
rm -f $(targetdir)/$$file && \
|
rm -f $(targetdir)/$$file && \
|
||||||
@ -706,7 +709,7 @@ symlinks: $(targetdir) $(DATA)
|
|||||||
done
|
done
|
||||||
for file in hd ; do \
|
for file in hd ; do \
|
||||||
rm -f $(targetdir)/$$file && \
|
rm -f $(targetdir)/$$file && \
|
||||||
$(LN_S) hexdump $(targetdir)/$$file ; \
|
$(LN_S) _hexdump $(targetdir)/$$file ; \
|
||||||
done
|
done
|
||||||
for file in hping hping3 ; do \
|
for file in hping hping3 ; do \
|
||||||
rm -f $(targetdir)/$$file && \
|
rm -f $(targetdir)/$$file && \
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
# cal(1) completion -*- shell-script -*-
|
# cal(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_cal()
|
_cal()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
8
completions/_chfn
Normal file
8
completions/_chfn
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# chfn(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
|
complete -u chfn
|
||||||
|
|
||||||
|
# ex: ts=4 sw=4 et filetype=sh
|
@ -1,5 +1,8 @@
|
|||||||
# chsh(1) completion -*- shell-script -*-
|
# chsh(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_chsh()
|
_chsh()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
@ -1,5 +1,8 @@
|
|||||||
# dmesg(1) completion -*- shell-script -*-
|
# dmesg(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_dmesg()
|
_dmesg()
|
||||||
{
|
{
|
||||||
[[ $OSTYPE == *solaris* ]] && return # no args there
|
[[ $OSTYPE == *solaris* ]] && return # no args there
|
@ -1,5 +1,8 @@
|
|||||||
# bash completion for eject(1) -*- shell-script -*-
|
# bash completion for eject(1) -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_eject()
|
_eject()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
@ -1,5 +1,8 @@
|
|||||||
# hexdump(1) completion -*- shell-script -*-
|
# hexdump(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_hexdump()
|
_hexdump()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
@ -1,5 +1,8 @@
|
|||||||
# look(1) completion -*- shell-script -*-
|
# look(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_look()
|
_look()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
@ -1,5 +1,8 @@
|
|||||||
# newgrp(1) completion -*- shell-script -*-
|
# newgrp(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_newgrp()
|
_newgrp()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
@ -1,5 +1,8 @@
|
|||||||
# renice(8) completion -*- shell-script -*-
|
# renice(8) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
_renice()
|
_renice()
|
||||||
{
|
{
|
||||||
local cur prev words cword
|
local cur prev words cword
|
8
completions/_runuser
Normal file
8
completions/_runuser
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# runuser(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
|
complete -u runuser
|
||||||
|
|
||||||
|
# ex: ts=4 sw=4 et filetype=sh
|
@ -1,5 +1,8 @@
|
|||||||
# bash completion for su(1) -*- shell-script -*-
|
# bash completion for su(1) -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
if [[ $OSTYPE != *linux* ]]; then
|
if [[ $OSTYPE != *linux* ]]; then
|
||||||
complete -u su # default completion
|
complete -u su # default completion
|
||||||
return
|
return
|
8
completions/_write
Normal file
8
completions/_write
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# write(1) completion -*- shell-script -*-
|
||||||
|
|
||||||
|
# Use of this file is deprecated on Linux. Upstream completion is
|
||||||
|
# available in util-linux >= 2.23, use that instead.
|
||||||
|
|
||||||
|
complete -u write
|
||||||
|
|
||||||
|
# ex: ts=4 sw=4 et filetype=sh
|
Loading…
x
Reference in New Issue
Block a user