From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: util-linux@vger.kernel.org
Cc: Alexander Kuleshov <kuleshovmail@gmail.com>
Subject: [PATCH] bash-completion/fndmt: curly brace missed
Date: Fri, 2 Oct 2015 15:38:56 +0600 [thread overview]
Message-ID: <1443778736-29968-1-git-send-email-kuleshovmail@gmail.com> (raw)
This patch provides fix for bash-completion/fndmt script. There
is curly brace missed in the completion generation for the -M/--mountpoint
option.
In other way we will get following messages:
bash: /etc/bash_completion.d/findmnt: line 91: unexpected EOF while looking for matching `)'
bash: /etc/bash_completion.d/findmnt: line 141: syntax error: unexpected end of file
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
bash-completion/findmnt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
index d7e06c8..946c22a 100644
--- a/bash-completion/findmnt
+++ b/bash-completion/findmnt
@@ -88,7 +88,7 @@ _findmnt_module()
'-M'|'--mountpoint')
local IFS=$'\n'
compopt -o filenames
- COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
+ COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
return 0
;;
'-h'|'--help'|'-V'|'--version')
--
2.6.0
next reply other threads:[~2015-10-02 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 9:38 Alexander Kuleshov [this message]
2015-10-02 10:36 ` [PATCH] bash-completion/fndmt: curly brace missed Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443778736-29968-1-git-send-email-kuleshovmail@gmail.com \
--to=kuleshovmail@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox