Util-Linux package development
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: util-linux@vger.kernel.org
Cc: Wolfram Sang <wsa@the-dreams.de>
Subject: [PATCH] bash-completion: umount explicitly needs gawk
Date: Tue, 28 Apr 2020 09:13:15 +0200	[thread overview]
Message-ID: <20200428071315.2945-1-wsa@the-dreams.de> (raw)

gensub() is a gawk extension, so use it explicitly. Otherwise users will
get an error if their 'awk' defaults to something else.

Fixes: 3ebfc8d37 ("bash-completion: umount support relative path and ~ as home shorthands")
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 bash-completion/umount | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash-completion/umount b/bash-completion/umount
index 7fc2bd376..0949688f9 100644
--- a/bash-completion/umount
+++ b/bash-completion/umount
@@ -51,7 +51,7 @@ _umount_module()
 
 	local oldifs=$IFS
 	IFS=$'\n'
-	COMPREPLY=( $( compgen -W "$(findmnt -lno TARGET | awk \
+	COMPREPLY=( $( compgen -W "$(findmnt -lno TARGET | gawk \
 		'{
 			if ($0 ~ ENVIRON["HOME"]) {
 				homeless = $0
-- 
2.26.2


             reply	other threads:[~2020-04-28  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28  7:13 Wolfram Sang [this message]
2020-04-29 10:33 ` [PATCH] bash-completion: umount explicitly needs gawk 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=20200428071315.2945-1-wsa@the-dreams.de \
    --to=wsa@the-dreams.de \
    --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