util-linux/bash-completion
Etienne Mollier 2c12297400 bash-completion/umount: shell charaters escape
This patch brings support for automatic dangerous shell characters
escape in umount autocompletion.  Due to the very peculiar way for
bash to handle autocompletion routines, proper escaping of the shell
sequences only worked properly inside a function: _umount_point_list,
which will add to the user's namespace at the next umount attempt of
autocompleting mount point.

It also translates calls of gensub to the portable alternatives sub
and gsub, in order to allow the use of various awk implementations
(mawk, Gnu, Busybox, etc), and as such kind of undoes a recent change
to enforce the use of Gnu awk. The whole story landed into the Debian
BTS initially:

	https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933934

PS: It's been a few months since the patch is available, sorry for the
    delay; I only got myself a Github account quite recently...

Signed-off-by: Étienne Mollier <etienne.mollier@mailoo.org>
2020-05-21 17:44:22 +02:00
..
addpart bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
blkdiscard bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
blkid bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
blkzone bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
blockdev bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
cal cal: Add column mode 2020-05-11 17:27:06 +02:00
cfdisk bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
chcpu bash-completion: fix few bash set -u issues 2018-04-06 13:03:38 +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
choom choom: new command to adjust OOM-killer score value 2018-04-16 12:53:39 +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: update column 2018-08-23 14:14:29 +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: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
dmesg bash-completion: update options 2019-09-12 19:49:51 +01:00
eject bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06: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: Add fallback for symlinks/images 2019-09-19 08:16:32 -06: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: add findmnt --real --pseudo 2018-05-11 10:50:19 +02:00
flock bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
fsck bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
fsck.cramfs bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
fsck.minix bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
fsfreeze bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
fstrim fstrim: rename --quite to --quite-unsupported 2020-03-31 12:26:54 +02:00
getopt bash-completion: Don't offer short options where corresponding long one exists. 2013-04-08 17:06:56 +02:00
hardlink bash-completion: add hardlink completion 2019-05-20 19:56:19 +01:00
hexdump bash-completion: update text-utils 2017-04-17 18:40:34 +01:00
hwclock bash-completion: catch up with option changes 2018-10-04 21:36:22 +01: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
irqtop bash-completion: update irqtop and lsirq completions 2020-03-07 06:38:50 +00: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 losetup: add --output-all option 2018-05-03 19:56:20 +01:00
lsblk bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
lscpu bash-completion: update options before release 2019-05-20 19:43:59 +01:00
lsipc bash-completion: make completions to work when bash set -u is in use 2017-07-15 22:05:42 +01:00
lsirq bash-completion: update irqtop and lsirq completions 2020-03-07 06:38:50 +00:00
lslocks lslocks: add --output-all option 2018-05-03 19:56:20 +01:00
lslogins lslogins: use lastlog as wtmp fallback 2020-03-29 21:18:48 +01:00
lsmem lsmem: add --output-all option 2018-05-03 19:56:20 +01:00
lsns lsns: add --output-all option 2018-05-03 19:56:21 +01:00
Makemodule.am bash-completion: update irqtop and lsirq completions 2020-03-07 06:38:50 +00: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: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
mkfs.bfs bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
mkfs.cramfs bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
mkfs.minix bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
mkswap bash-completion: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
more more: use getopt_long() to parse options 2020-04-13 12:14:08 +01:00
mount bash-completion: cleanup mount and umount --namespace 2018-10-05 11:48:04 +02:00
mountpoint mountpoint: add --nofollow option 2019-08-02 19:39:05 +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: Add fallback for symlinks/images 2019-09-19 08:16:32 -06: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: catch up with option changes 2018-10-04 21:36:22 +01:00
renice bash-completion: simplify pid listing 2017-08-30 11:21:57 +02:00
resizepart bash-completion: Add non-canonical device fallback 2019-09-19 08:17:09 -06:00
rev bash-completion: use '\n' as IFS when ask for filenames 2013-09-30 15:49:00 +02:00
rfkill rfkill: add --output-all option 2018-05-03 19:56:21 +01:00
rtcwake bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
script bash-completion: update script, scriptlive, and scriptreplay files 2019-12-11 19:19:21 +00:00
scriptlive bash-completion: update script, scriptlive, and scriptreplay files 2019-12-11 19:19:21 +00:00
scriptreplay bash-completion: update script, scriptlive, and scriptreplay files 2019-12-11 19:19:21 +00:00
setarch bash-completion: update sys-utils 2017-04-17 18:26:37 +01:00
setpriv bash-completion: catch up with option changes 2018-10-04 21:36:22 +01: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: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
su bash-completion: catch up with option changes 2018-10-04 21:36:22 +01: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: add swapon specifiers to completion 2018-05-28 13:36:38 +02:00
taskset bash-completion: fix few bash set -u issues 2018-04-06 13:03:38 +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: shell charaters escape 2020-05-21 17:44:22 +02:00
unshare unshare: support the time namespace 2020-03-08 19:02:00 +01: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: Add fallback for symlinks/images 2019-09-19 08:16:32 -06:00
write bash-completion: update term-utils 2017-04-17 18:34:14 +01:00
zramctl zramctl: add --output-all option 2018-05-03 19:56:21 +01:00