From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D646C83000 for ; Tue, 28 Apr 2020 07:13:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB58A206A5 for ; Tue, 28 Apr 2020 07:13:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726259AbgD1HNX (ORCPT ); Tue, 28 Apr 2020 03:13:23 -0400 Received: from sauhun.de ([88.99.104.3]:39550 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725867AbgD1HNX (ORCPT ); Tue, 28 Apr 2020 03:13:23 -0400 Received: from localhost (p5486CA03.dip0.t-ipconnect.de [84.134.202.3]) by pokefinder.org (Postfix) with ESMTPSA id 126B42C0710; Tue, 28 Apr 2020 09:13:22 +0200 (CEST) From: Wolfram Sang To: util-linux@vger.kernel.org Cc: Wolfram Sang Subject: [PATCH] bash-completion: umount explicitly needs gawk Date: Tue, 28 Apr 2020 09:13:15 +0200 Message-Id: <20200428071315.2945-1-wsa@the-dreams.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: util-linux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org 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 --- 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