aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 11:15:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 11:15:16 +1300
commit38d3783a1db89c0520cb98f9341465c99dcc4dc9 (patch)
tree050ad3ce50c805be55827e352939e772f0919360 /bash
parentada478997c5429520a1b3d0519db9ddea4d205cb (diff)
downloaddotfiles-38d3783a1db89c0520cb98f9341465c99dcc4dc9.tar.gz
dotfiles-38d3783a1db89c0520cb98f9341465c99dcc4dc9.zip
Remove unneeded -q option to shopt -s commands
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/_ssh_config_hosts.bash2
-rw-r--r--bash/bash_completion.d/_text_filenames.bash2
2 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_completion.d/_ssh_config_hosts.bash b/bash/bash_completion.d/_ssh_config_hosts.bash
index c26457cf..dc75d4bc 100644
--- a/bash/bash_completion.d/_ssh_config_hosts.bash
+++ b/bash/bash_completion.d/_ssh_config_hosts.bash
@@ -16,7 +16,7 @@ _ssh_config_hosts() {
while read -r _ setting ; do
case $setting in
('completion-ignore-case on')
- shopt -qs nocasematch 2>/dev/null
+ shopt -s nocasematch 2>/dev/null
break
;;
esac
diff --git a/bash/bash_completion.d/_text_filenames.bash b/bash/bash_completion.d/_text_filenames.bash
index 9cc1c722..4d576374 100644
--- a/bash/bash_completion.d/_text_filenames.bash
+++ b/bash/bash_completion.d/_text_filenames.bash
@@ -32,7 +32,7 @@ _text_filenames() {
# Check the filename extension to know what to exclude
(
# Case-insensitive matching available since 3.1-alpha
- shopt -qs nocasematch 2>/dev/null
+ shopt -s nocasematch 2>/dev/null
# Match against known binary patterns
case $item in