Skip to content

Commit

Permalink
mount, umount: Deprecate on Linux in favor of util-linux >= 2.28 ones
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 24, 2018
1 parent 71ac42b commit 861be75
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ bashcomp_DATA = 2to3 \
modprobe \
_modules \
monodevelop \
mount \
mount.linux \
_mount \
_mount.linux \
mplayer \
mr \
msynctool \
Expand Down Expand Up @@ -384,8 +384,8 @@ bashcomp_DATA = 2to3 \
tshark \
tune2fs \
_udevadm \
umount \
umount.linux \
_umount \
_umount.linux \
unace \
unpack200 \
unrar \
Expand Down
3 changes: 3 additions & 0 deletions completions/mount → completions/_mount
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# mount(8) completion -*- shell-script -*-

# Use of this file is deprecated on Linux. Upstream completion is
# available in util-linux >= 2.28, use that instead.

if [[ $OSTYPE == *linux* ]]; then
. "$BASH_SOURCE.linux"
return
Expand Down
3 changes: 3 additions & 0 deletions completions/mount.linux → completions/_mount.linux
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# mount(8) completion -*- shell-script -*-

# Use of this file is deprecated on Linux. Upstream completion is
# available in util-linux >= 2.28, use that instead.

_mount()
{
local cur prev words cword
Expand Down
3 changes: 3 additions & 0 deletions completions/umount → completions/_umount
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# umount(8) completion -*- shell-script -*-

# Use of this file is deprecated on Linux. Upstream completion is
# available in util-linux >= 2.28, use that instead.

if [[ $OSTYPE == *linux* ]]; then
. "$BASH_SOURCE.linux"
return
Expand Down
3 changes: 3 additions & 0 deletions completions/umount.linux → completions/_umount.linux
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# umount(8) completion -*- shell-script -*-

# Use of this file is deprecated on Linux. Upstream completion is
# available in util-linux >= 2.28, use that instead.

# Just like COMPREPLY=(`compgen -W "${COMPREPLY[*]}" -- "$cur"`), only better!
#
# This will correctly escape special characters in COMPREPLY.
Expand Down

0 comments on commit 861be75

Please sign in to comment.