cal,chfn,chsh,dmesg,eject,hexdump,look,newgrp,renice,runuser,su,write: Deprecate on Linux in favor of util-linux ones (Debian: #737672)

master
Ville Skyttä 2014-02-08 19:34:02 +02:00
parent bb768978ba
commit e452f2e8d6
14 changed files with 66 additions and 12 deletions

View File

@ -59,7 +59,7 @@ complete -d pushd
# start of section containing compspecs that can be handled within bash
# 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
complete -A stopped -P '"%' -S '"' bg

View File

@ -31,7 +31,7 @@ bashcomp_DATA = 2to3 \
btdownloadheadless.py \
bts \
bzip2 \
cal \
_cal \
cancel \
cardctl \
ccache \
@ -41,13 +41,14 @@ bashcomp_DATA = 2to3 \
change_pw \
check_db \
check_perms \
_chfn \
chgrp \
chkconfig \
chown \
chpasswd \
chronyc \
chrpath \
chsh \
_chsh \
cksfv \
cleanarch \
clisp \
@ -69,7 +70,7 @@ bashcomp_DATA = 2to3 \
desktop-file-validate \
dhclient \
dict \
dmesg \
_dmesg \
dnsspoof \
dot \
dpkg \
@ -80,7 +81,7 @@ bashcomp_DATA = 2to3 \
dumpe2fs \
e2freefrag \
e2label \
eject \
_eject \
eog \
ether-wake \
evince \
@ -125,7 +126,7 @@ bashcomp_DATA = 2to3 \
gzip \
hcitool \
hddtemp \
hexdump \
_hexdump \
hid2hci \
hping2 \
htop \
@ -183,7 +184,7 @@ bashcomp_DATA = 2to3 \
list_lists \
list_members \
list_owners \
look \
_look \
lpq \
lpr \
lrzip \
@ -233,7 +234,7 @@ bashcomp_DATA = 2to3 \
nc \
ncftp \
nethogs \
newgrp \
_newgrp \
newlist \
newusers \
ngrep \
@ -293,7 +294,7 @@ bashcomp_DATA = 2to3 \
rdesktop \
remove_members \
removepkg \
renice \
_renice \
_repomanage \
reportbug \
reptyr \
@ -310,6 +311,7 @@ bashcomp_DATA = 2to3 \
rrdtool \
rsync \
_rtcwake \
_runuser \
sbcl \
sbopkg \
screen \
@ -332,7 +334,7 @@ bashcomp_DATA = 2to3 \
sshow \
strace \
strings \
su \
_su \
sudo \
svcadm \
svk \
@ -376,6 +378,7 @@ bashcomp_DATA = 2to3 \
withlist \
wodim \
wol \
_write \
wsimport \
wtf \
wvdial \
@ -640,7 +643,7 @@ symlinks: $(targetdir) $(DATA)
done
for file in ncal ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) cal $(targetdir)/$$file ; \
$(LN_S) _cal $(targetdir)/$$file ; \
done
for file in pccardctl ; do \
rm -f $(targetdir)/$$file && \
@ -706,7 +709,7 @@ symlinks: $(targetdir) $(DATA)
done
for file in hd ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) hexdump $(targetdir)/$$file ; \
$(LN_S) _hexdump $(targetdir)/$$file ; \
done
for file in hping hping3 ; do \
rm -f $(targetdir)/$$file && \

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

8
completions/_chfn Normal file
View 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

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

View File

@ -1,5 +1,8 @@
# 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()
{
[[ $OSTYPE == *solaris* ]] && return # no args there

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

View File

@ -1,5 +1,8 @@
# 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()
{
local cur prev words cword

8
completions/_runuser Normal file
View 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

View File

@ -1,5 +1,8 @@
# 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
complete -u su # default completion
return

8
completions/_write Normal file
View 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