|
|
531551 |
From 28907c1a50132c9a308b8d2c22bf4905041c446f Mon Sep 17 00:00:00 2001
|
|
|
531551 |
From: Karel Zak <kzak@redhat.com>
|
|
|
531551 |
Date: Mon, 30 Sep 2013 15:49:00 +0200
|
|
|
531551 |
Subject: [PATCH 64/84] bash-completion: use '\n' as IFS when ask for filenames
|
|
|
531551 |
MIME-Version: 1.0
|
|
|
531551 |
Content-Type: text/plain; charset=UTF-8
|
|
|
531551 |
Content-Transfer-Encoding: 8bit
|
|
|
531551 |
|
|
|
531551 |
The bash completion for more(1) treats the space-separated pieces of
|
|
|
531551 |
filenames as different files.
|
|
|
531551 |
|
|
|
531551 |
$ touch foo\ bar
|
|
|
531551 |
$ more foo<TAB>
|
|
|
531551 |
bar foo
|
|
|
531551 |
|
|
|
531551 |
Upstream: http://github.com/karelzak/util-linux/commit/ce3e6b15e2c4478b2df9a7016c168b16325abfb0
|
|
|
531551 |
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=1296366
|
|
|
531551 |
Reported-by: Ángel González <ingenit@zoho.com>
|
|
|
531551 |
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
531551 |
---
|
|
|
531551 |
bash-completion/blkid | 1 +
|
|
|
531551 |
bash-completion/colcrt | 1 +
|
|
|
531551 |
bash-completion/column | 1 +
|
|
|
531551 |
bash-completion/cytune | 1 +
|
|
|
531551 |
bash-completion/dmesg | 1 +
|
|
|
531551 |
bash-completion/fallocate | 1 +
|
|
|
531551 |
bash-completion/findmnt | 1 +
|
|
|
531551 |
bash-completion/flock | 1 +
|
|
|
531551 |
bash-completion/fsck.cramfs | 1 +
|
|
|
531551 |
bash-completion/hexdump | 1 +
|
|
|
531551 |
bash-completion/hwclock | 1 +
|
|
|
531551 |
bash-completion/ionice | 1 +
|
|
|
531551 |
bash-completion/last | 1 +
|
|
|
531551 |
bash-completion/ldattach | 1 +
|
|
|
531551 |
bash-completion/logger | 1 +
|
|
|
531551 |
bash-completion/look | 1 +
|
|
|
531551 |
bash-completion/losetup | 1 +
|
|
|
531551 |
bash-completion/lscpu | 1 +
|
|
|
531551 |
bash-completion/lslocks | 1 +
|
|
|
531551 |
bash-completion/mcookie | 1 +
|
|
|
531551 |
bash-completion/mkfs.cramfs | 1 +
|
|
|
531551 |
bash-completion/mkswap | 1 +
|
|
|
531551 |
bash-completion/more | 2 ++
|
|
|
531551 |
bash-completion/mountpoint | 1 +
|
|
|
531551 |
bash-completion/namei | 1 +
|
|
|
531551 |
bash-completion/nsenter | 1 +
|
|
|
531551 |
bash-completion/pg | 1 +
|
|
|
531551 |
bash-completion/pivot_root | 1 +
|
|
|
531551 |
bash-completion/readprofile | 1 +
|
|
|
531551 |
bash-completion/rename | 1 +
|
|
|
531551 |
bash-completion/rev | 1 +
|
|
|
531551 |
bash-completion/script | 1 +
|
|
|
531551 |
bash-completion/scriptreplay | 1 +
|
|
|
531551 |
bash-completion/setterm | 1 +
|
|
|
531551 |
bash-completion/sfdisk | 1 +
|
|
|
531551 |
bash-completion/su | 1 +
|
|
|
531551 |
bash-completion/swaplabel | 1 +
|
|
|
531551 |
bash-completion/tailf | 1 +
|
|
|
531551 |
bash-completion/tunelp | 1 +
|
|
|
531551 |
bash-completion/ul | 1 +
|
|
|
531551 |
bash-completion/utmpdump | 1 +
|
|
|
531551 |
bash-completion/uuidd | 3 +++
|
|
|
531551 |
bash-completion/wall | 1 +
|
|
|
531551 |
bash-completion/wdctl | 1 +
|
|
|
531551 |
bash-completion/whereis | 1 +
|
|
|
531551 |
45 files changed, 48 insertions(+)
|
|
|
531551 |
|
|
|
531551 |
diff --git a/bash-completion/blkid b/bash-completion/blkid
|
|
|
531551 |
index b439328..9f97dd9 100644
|
|
|
531551 |
--- a/bash-completion/blkid
|
|
|
531551 |
+++ b/bash-completion/blkid
|
|
|
531551 |
@@ -6,6 +6,7 @@ _blkid_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-c')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/colcrt b/bash-completion/colcrt
|
|
|
531551 |
index f9e4c33..c66d7e6 100644
|
|
|
531551 |
--- a/bash-completion/colcrt
|
|
|
531551 |
+++ b/bash-completion/colcrt
|
|
|
531551 |
@@ -19,6 +19,7 @@ _colcrt_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/column b/bash-completion/column
|
|
|
531551 |
index f5cb86b..3af8e73 100644
|
|
|
531551 |
--- a/bash-completion/column
|
|
|
531551 |
+++ b/bash-completion/column
|
|
|
531551 |
@@ -30,6 +30,7 @@ _column_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/cytune b/bash-completion/cytune
|
|
|
531551 |
index 4f42838..f685c88 100644
|
|
|
531551 |
--- a/bash-completion/cytune
|
|
|
531551 |
+++ b/bash-completion/cytune
|
|
|
531551 |
@@ -33,6 +33,7 @@ _cytune_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- ${cur:-"/dev/tty"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/dmesg b/bash-completion/dmesg
|
|
|
531551 |
index 60ecc1a..eab41ba 100644
|
|
|
531551 |
--- a/bash-completion/dmesg
|
|
|
531551 |
+++ b/bash-completion/dmesg
|
|
|
531551 |
@@ -6,6 +6,7 @@ _dmesg_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-F'|'--file')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/fallocate b/bash-completion/fallocate
|
|
|
531551 |
index 5007b60..2c6e4cb 100644
|
|
|
531551 |
--- a/bash-completion/fallocate
|
|
|
531551 |
+++ b/bash-completion/fallocate
|
|
|
531551 |
@@ -20,6 +20,7 @@ _fallocate_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
|
|
|
531551 |
index 9386d8f..3ed331a 100644
|
|
|
531551 |
--- a/bash-completion/findmnt
|
|
|
531551 |
+++ b/bash-completion/findmnt
|
|
|
531551 |
@@ -18,6 +18,7 @@ _findmnt_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
'-F'|'--tab-file')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/flock b/bash-completion/flock
|
|
|
531551 |
index 8cd60d3..8e7f8b8 100644
|
|
|
531551 |
--- a/bash-completion/flock
|
|
|
531551 |
+++ b/bash-completion/flock
|
|
|
531551 |
@@ -38,6 +38,7 @@ _flock_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- ${cur:-"/"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/fsck.cramfs b/bash-completion/fsck.cramfs
|
|
|
531551 |
index 84f6f31..acf6564 100644
|
|
|
531551 |
--- a/bash-completion/fsck.cramfs
|
|
|
531551 |
+++ b/bash-completion/fsck.cramfs
|
|
|
531551 |
@@ -6,6 +6,7 @@ _fsck.cramfs_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-x'|'--destination')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/hexdump b/bash-completion/hexdump
|
|
|
531551 |
index 0c91187..c17bcae 100644
|
|
|
531551 |
--- a/bash-completion/hexdump
|
|
|
531551 |
+++ b/bash-completion/hexdump
|
|
|
531551 |
@@ -28,6 +28,7 @@ _hexdump_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/hwclock b/bash-completion/hwclock
|
|
|
531551 |
index 0c4ebaf..de1ac20 100644
|
|
|
531551 |
--- a/bash-completion/hwclock
|
|
|
531551 |
+++ b/bash-completion/hwclock
|
|
|
531551 |
@@ -6,6 +6,7 @@ _hwclock_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-f'|'--rtc'|'--adjfile')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/ionice b/bash-completion/ionice
|
|
|
531551 |
index 3a01c51..1b1c5fe 100644
|
|
|
531551 |
--- a/bash-completion/ionice
|
|
|
531551 |
+++ b/bash-completion/ionice
|
|
|
531551 |
@@ -30,6 +30,7 @@ _ionice_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/last b/bash-completion/last
|
|
|
531551 |
index 493051e..c93be3d 100644
|
|
|
531551 |
--- a/bash-completion/last
|
|
|
531551 |
+++ b/bash-completion/last
|
|
|
531551 |
@@ -6,6 +6,7 @@ _last_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-f')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/ldattach b/bash-completion/ldattach
|
|
|
531551 |
index 830142d..0b9d260 100644
|
|
|
531551 |
--- a/bash-completion/ldattach
|
|
|
531551 |
+++ b/bash-completion/ldattach
|
|
|
531551 |
@@ -42,6 +42,7 @@ _ldattach_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
/*)
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/logger b/bash-completion/logger
|
|
|
531551 |
index f46be8a..963abc7 100644
|
|
|
531551 |
--- a/bash-completion/logger
|
|
|
531551 |
+++ b/bash-completion/logger
|
|
|
531551 |
@@ -6,6 +6,7 @@ _logger_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-f'|'--file')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/look b/bash-completion/look
|
|
|
531551 |
index e8676ba..303a756 100644
|
|
|
531551 |
--- a/bash-completion/look
|
|
|
531551 |
+++ b/bash-completion/look
|
|
|
531551 |
@@ -20,6 +20,7 @@ _look_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/losetup b/bash-completion/losetup
|
|
|
531551 |
index 75240b8..874c549 100644
|
|
|
531551 |
--- a/bash-completion/losetup
|
|
|
531551 |
+++ b/bash-completion/losetup
|
|
|
531551 |
@@ -60,6 +60,7 @@ _losetup_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/lscpu b/bash-completion/lscpu
|
|
|
531551 |
index bce07c4..244b418 100644
|
|
|
531551 |
--- a/bash-completion/lscpu
|
|
|
531551 |
+++ b/bash-completion/lscpu
|
|
|
531551 |
@@ -41,6 +41,7 @@ _lscpu_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/lslocks b/bash-completion/lslocks
|
|
|
531551 |
index 337d07e..c9cff2c 100644
|
|
|
531551 |
--- a/bash-completion/lslocks
|
|
|
531551 |
+++ b/bash-completion/lslocks
|
|
|
531551 |
@@ -38,6 +38,7 @@ _lslocks_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/mcookie b/bash-completion/mcookie
|
|
|
531551 |
index eb3f54b..4345b6e 100644
|
|
|
531551 |
--- a/bash-completion/mcookie
|
|
|
531551 |
+++ b/bash-completion/mcookie
|
|
|
531551 |
@@ -6,6 +6,7 @@ _mcookie_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-f'|'--file')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/mkfs.cramfs b/bash-completion/mkfs.cramfs
|
|
|
531551 |
index 38ab3b6..af74e12 100644
|
|
|
531551 |
--- a/bash-completion/mkfs.cramfs
|
|
|
531551 |
+++ b/bash-completion/mkfs.cramfs
|
|
|
531551 |
@@ -36,6 +36,7 @@ _mkfs.cramfs_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/mkswap b/bash-completion/mkswap
|
|
|
531551 |
index c411b30..b72efaf 100644
|
|
|
531551 |
--- a/bash-completion/mkswap
|
|
|
531551 |
+++ b/bash-completion/mkswap
|
|
|
531551 |
@@ -28,6 +28,7 @@ _mkswap_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/more b/bash-completion/more
|
|
|
531551 |
index 945c7b3..809cea2 100644
|
|
|
531551 |
--- a/bash-completion/more
|
|
|
531551 |
+++ b/bash-completion/more
|
|
|
531551 |
@@ -21,6 +21,8 @@ _more_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/mountpoint b/bash-completion/mountpoint
|
|
|
531551 |
index 8fe27b8..f74efc9 100644
|
|
|
531551 |
--- a/bash-completion/mountpoint
|
|
|
531551 |
+++ b/bash-completion/mountpoint
|
|
|
531551 |
@@ -20,6 +20,7 @@ _mountpoint_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- ${cur:-"/"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/namei b/bash-completion/namei
|
|
|
531551 |
index 63fb37a..6402735 100644
|
|
|
531551 |
--- a/bash-completion/namei
|
|
|
531551 |
+++ b/bash-completion/namei
|
|
|
531551 |
@@ -16,6 +16,7 @@ _namei_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/nsenter b/bash-completion/nsenter
|
|
|
531551 |
index 2970b8d..268f378 100644
|
|
|
531551 |
--- a/bash-completion/nsenter
|
|
|
531551 |
+++ b/bash-completion/nsenter
|
|
|
531551 |
@@ -40,6 +40,7 @@ _nsenter_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/pg b/bash-completion/pg
|
|
|
531551 |
index 9b1bad9..8fce130 100644
|
|
|
531551 |
--- a/bash-completion/pg
|
|
|
531551 |
+++ b/bash-completion/pg
|
|
|
531551 |
@@ -25,6 +25,7 @@ _pg_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/pivot_root b/bash-completion/pivot_root
|
|
|
531551 |
index 961c883..95df4b4 100644
|
|
|
531551 |
--- a/bash-completion/pivot_root
|
|
|
531551 |
+++ b/bash-completion/pivot_root
|
|
|
531551 |
@@ -11,6 +11,7 @@ _pivot_root_module()
|
|
|
531551 |
esac
|
|
|
531551 |
case $COMP_CWORD in
|
|
|
531551 |
1|2)
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
|
|
|
531551 |
;;
|
|
|
531551 |
diff --git a/bash-completion/readprofile b/bash-completion/readprofile
|
|
|
531551 |
index a5f45f5..bd265a6 100644
|
|
|
531551 |
--- a/bash-completion/readprofile
|
|
|
531551 |
+++ b/bash-completion/readprofile
|
|
|
531551 |
@@ -6,6 +6,7 @@ _readprofile_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-m'|'--mapfile'|'-p'|'--profile')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/rename b/bash-completion/rename
|
|
|
531551 |
index 3842c4d..81365a5 100644
|
|
|
531551 |
--- a/bash-completion/rename
|
|
|
531551 |
+++ b/bash-completion/rename
|
|
|
531551 |
@@ -24,6 +24,7 @@ _rename_module()
|
|
|
531551 |
COMPREPLY=( $(compgen -W "replacement" -- $cur) )
|
|
|
531551 |
;;
|
|
|
531551 |
*)
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
;;
|
|
|
531551 |
diff --git a/bash-completion/rev b/bash-completion/rev
|
|
|
531551 |
index 619c5c4..e5397d5 100644
|
|
|
531551 |
--- a/bash-completion/rev
|
|
|
531551 |
+++ b/bash-completion/rev
|
|
|
531551 |
@@ -16,6 +16,7 @@ _rev_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/script b/bash-completion/script
|
|
|
531551 |
index 329fc48..d7efd7e 100644
|
|
|
531551 |
--- a/bash-completion/script
|
|
|
531551 |
+++ b/bash-completion/script
|
|
|
531551 |
@@ -32,6 +32,7 @@ _script_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/scriptreplay b/bash-completion/scriptreplay
|
|
|
531551 |
index 2ad7b11..a4aa8a0 100644
|
|
|
531551 |
--- a/bash-completion/scriptreplay
|
|
|
531551 |
+++ b/bash-completion/scriptreplay
|
|
|
531551 |
@@ -24,6 +24,7 @@ _scriptreplay_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/setterm b/bash-completion/setterm
|
|
|
531551 |
index 7fa0a4e..a7ef6eb 100644
|
|
|
531551 |
--- a/bash-completion/setterm
|
|
|
531551 |
+++ b/bash-completion/setterm
|
|
|
531551 |
@@ -45,6 +45,7 @@ _setterm_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
'-file')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/sfdisk b/bash-completion/sfdisk
|
|
|
531551 |
index 0226b04..609104c 100644
|
|
|
531551 |
--- a/bash-completion/sfdisk
|
|
|
531551 |
+++ b/bash-completion/sfdisk
|
|
|
531551 |
@@ -14,6 +14,7 @@ _sfdisk_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
'-O'|'-I')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/su b/bash-completion/su
|
|
|
531551 |
index e739b56..dad1b5f 100644
|
|
|
531551 |
--- a/bash-completion/su
|
|
|
531551 |
+++ b/bash-completion/su
|
|
|
531551 |
@@ -38,6 +38,7 @@ _su_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/swaplabel b/bash-completion/swaplabel
|
|
|
531551 |
index 093169e..08aa9cd 100644
|
|
|
531551 |
--- a/bash-completion/swaplabel
|
|
|
531551 |
+++ b/bash-completion/swaplabel
|
|
|
531551 |
@@ -24,6 +24,7 @@ _swaplabel_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/tailf b/bash-completion/tailf
|
|
|
531551 |
index e3dd295..0d4c869 100644
|
|
|
531551 |
--- a/bash-completion/tailf
|
|
|
531551 |
+++ b/bash-completion/tailf
|
|
|
531551 |
@@ -20,6 +20,7 @@ _tailf_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/tunelp b/bash-completion/tunelp
|
|
|
531551 |
index 614b235..bd2cce2 100644
|
|
|
531551 |
--- a/bash-completion/tunelp
|
|
|
531551 |
+++ b/bash-completion/tunelp
|
|
|
531551 |
@@ -44,6 +44,7 @@ _tunelp_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- ${cur:-"/dev/lp"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/ul b/bash-completion/ul
|
|
|
531551 |
index c00e510..449cbe0 100644
|
|
|
531551 |
--- a/bash-completion/ul
|
|
|
531551 |
+++ b/bash-completion/ul
|
|
|
531551 |
@@ -25,6 +25,7 @@ _ul_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/utmpdump b/bash-completion/utmpdump
|
|
|
531551 |
index 3b868ce..7e4fd5a 100644
|
|
|
531551 |
--- a/bash-completion/utmpdump
|
|
|
531551 |
+++ b/bash-completion/utmpdump
|
|
|
531551 |
@@ -16,6 +16,7 @@ _utmpdump_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/uuidd b/bash-completion/uuidd
|
|
|
531551 |
index c45b067..c8f6697 100644
|
|
|
531551 |
--- a/bash-completion/uuidd
|
|
|
531551 |
+++ b/bash-completion/uuidd
|
|
|
531551 |
@@ -6,16 +6,19 @@ _uuidd_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-p'|'--pid'|'-s'|'--socket')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
'-T'|'--timeout')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -W "timeout" -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
'-n'|'--uuids')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -W "number" -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/wall b/bash-completion/wall
|
|
|
531551 |
index 55d9658..e3145ff 100644
|
|
|
531551 |
--- a/bash-completion/wall
|
|
|
531551 |
+++ b/bash-completion/wall
|
|
|
531551 |
@@ -20,6 +20,7 @@ _wall_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- $cur) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/wdctl b/bash-completion/wdctl
|
|
|
531551 |
index 33b4e1f..4f16e76 100644
|
|
|
531551 |
--- a/bash-completion/wdctl
|
|
|
531551 |
+++ b/bash-completion/wdctl
|
|
|
531551 |
@@ -56,6 +56,7 @@ _wdctl_module()
|
|
|
531551 |
return 0
|
|
|
531551 |
;;
|
|
|
531551 |
esac
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -f -- ${cur:-"/dev/"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
diff --git a/bash-completion/whereis b/bash-completion/whereis
|
|
|
531551 |
index 2273a07..0dcbac3 100644
|
|
|
531551 |
--- a/bash-completion/whereis
|
|
|
531551 |
+++ b/bash-completion/whereis
|
|
|
531551 |
@@ -6,6 +6,7 @@ _whereis_module()
|
|
|
531551 |
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
531551 |
case $prev in
|
|
|
531551 |
'-B'|'-M'|'-S')
|
|
|
531551 |
+ local IFS=$'\n'
|
|
|
531551 |
compopt -o filenames
|
|
|
531551 |
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
|
|
|
531551 |
return 0
|
|
|
531551 |
--
|
|
|
531551 |
2.7.4
|
|
|
531551 |
|