util-linux/bash-completion
Karel Zak 75f03badd7 bash-completion: (umount) use findmnt, escape a space in paths
# mount /dev/sdc1 /mnt/test/foo\ bar
 # umount <tab>

has to return "/mnt/test/foo\ bar".

Changes:

 * don't use mount | awk output, we have findmnt
 * force compgen use \n as entries separator

Addresses: https://github.com/karelzak/util-linux/issues/539
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-11-16 16:27:32 +01:00
..
Makemodule.am rfkill: add bash-completion file 2017-08-30 20:32:49 +01:00
addpart bash-completion: remove unused variables [shellcheck] 2015-06-08 12:09:54 +02:00
blkdiscard bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
blkid bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
blkzone blkzone: add count option to bash-completion 2017-02-24 12:05:13 +01:00
blockdev bash-completion: stop being clever when listing block devices 2014-10-31 10:39:00 +01:00
cal bash-completion: add cal --span 2015-11-05 11:34:25 +01:00
cfdisk bash-completion: stop being clever when listing block devices 2014-10-31 10:39:00 +01:00
chcpu bash-completion: handle comma-separated options 2015-06-08 12:09:48 +02:00
chfn bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
chmem lsmem/chmem: add memory zone awareness to bash-completion 2017-10-20 12:37:04 +02:00
chrt bash-completion: update chrt completion 2016-04-04 10:26:03 +02:00
chsh bash-completion: Invoke actual commands to be completed, not basenames 2014-11-18 13:58:21 +01:00
col bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
colcrt bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
colrm bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
column bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
ctrlaltdel bash-completion: Don't offer any more completions after help or version. 2013-04-08 17:06:52 +02:00
delpart bash-completion: stop being clever when listing block devices 2014-10-31 10:39:00 +01:00
dmesg bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
eject bash-completion: Invoke actual commands to be completed, not basenames 2014-11-18 13:58:21 +01:00
fallocate bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
fdformat bash-completion: update disk-utils 2017-04-17 18:12:10 +01:00
fdisk bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
fincore bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
findfs bash-completion: update misc-utils 2017-04-17 18:18:10 +01:00
findmnt bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
flock bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
fsck bash-completion: Exclude /dev/fd from fsck find 2017-10-30 14:12:55 -06:00
fsck.cramfs bash-completion: update disk-utils 2017-04-17 18:12:10 +01:00
fsck.minix fsck.minix: introduce long options to the command 2015-07-30 11:39:17 +02:00
fsfreeze bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
fstrim bash-completion: fstrim: use mountpoint, not device 2015-11-13 09:52:14 +01:00
getopt bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
hexdump bash-completion: update text-utils 2017-04-17 18:40:34 +01:00
hwclock bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
ionice bash-completion: update schedutils 2017-04-17 18:20:54 +01:00
ipcmk bash-completion: ipcmk: add missing completion file 2016-03-14 13:15:14 +01:00
ipcrm bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
ipcs bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
isosize bash-completion: fsck.cramfs, isosize: find files an argument 2016-03-14 13:15:13 +01:00
last bash-completion: update login-utils 2017-04-17 18:16:24 +01:00
ldattach bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
logger bash-completion: update misc-utils 2017-04-17 18:18:10 +01:00
look bash-completion: look for look completions 2017-08-05 09:58:25 +01:00
losetup bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
lsblk bash-completion: update misc-utils 2017-04-17 18:18:10 +01:00
lscpu bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
lsipc bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
lslocks bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
lslogins bash-completion: lslogins: add missing completion file 2016-03-14 13:15:14 +01:00
lsmem lsmem/chmem: add memory zone awareness to bash-completion 2017-10-20 12:37:04 +02:00
lsns bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
mcookie bash-completion: update misc-utils 2017-04-17 18:18:10 +01:00
mesg bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
mkfs bash-completion: remove unused variables [shellcheck] 2015-06-08 12:09:54 +02:00
mkfs.bfs bash-completion: remove unused variables [shellcheck] 2015-06-08 12:09:54 +02:00
mkfs.cramfs bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
mkfs.minix mkfs.minix: introduce long options to the command 2015-07-30 11:39:12 +02:00
mkswap bash-completion: update disk-utils 2017-04-17 18:12:10 +01:00
more bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
mount bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
mountpoint bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
namei bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
newgrp bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
nsenter bash-completion: simplify pid listing 2017-08-30 11:21:57 +02:00
partx bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
pg bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
pivot_root bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
prlimit bash-completion: simplify pid listing 2017-08-30 11:21:57 +02:00
raw bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
readprofile bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
rename bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
renice bash-completion: simplify pid listing 2017-08-30 11:21:57 +02:00
resizepart bash-completion: stop being clever when listing block devices 2014-10-31 10:39:00 +01:00
rev bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
rfkill rfkill: add bash-completion file 2017-08-30 20:32:49 +01:00
rtcwake bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
script bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
scriptreplay bash-completion: update term-utils 2017-04-17 18:34:14 +01:00
setarch bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
setpriv bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
setsid bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
setterm bash-completion: update term-utils 2017-04-17 18:34:14 +01:00
sfdisk bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
su bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
swaplabel bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
swapoff bash-completion: use swapon label and uuid listing support 2014-10-31 10:39:01 +01:00
swapon bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
taskset bash-completion: simplify pid listing 2017-08-30 11:21:57 +02:00
tunelp bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
ul bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
umount bash-completion: (umount) use findmnt, escape a space in paths 2017-11-16 16:27:32 +01:00
unshare unshare: Add --kill-child option. 2017-10-14 04:46:13 +02:00
utmpdump bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
uuidd bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
uuidgen bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
uuidparse uuidparse: add bash-completion file 2017-07-15 22:05:00 +01:00
wall wall: check -g GID 2016-12-02 14:11:20 +01:00
wdctl bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
whereis bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
wipefs bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock 2017-09-18 11:04:52 +02:00
write bash-completion: update term-utils 2017-04-17 18:34:14 +01:00
zramctl bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00