Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp58898imm; Fri, 6 Jul 2018 13:59:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdbyXWpuzPyH4KhyCTR8lQXrj2TmlCmrMHudgBnZ7fvZ1LFy3Uz+4Ph0bHUXYFL068NW0c X-Received: by 2002:a17:902:9681:: with SMTP id n1-v6mr11958786plp.244.1530910774176; Fri, 06 Jul 2018 13:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530910774; cv=none; d=google.com; s=arc-20160816; b=f6r7iPwFoXKQ4A5MsCnt1H5wYLavFYZxABa7QuCVpXs+UeRuj8/3RG72vlcGnnYtlx mgQ2nYM131VYaHM3kzxwfqfQzTrHAExcmlm+tYHT5szRoPb0isOAooL2X2i6r0yRobEM ZzDRfK39XMM58Vq6/SWvE7e8uPqQsFnbVyBxxlKNyHjGMvngcglPg3sGHoBOW/az60sB JUzYdPaGaA7RadK2H/Q60oMgPaEzr4vqaGzG9dV/M97lp6gLrlPSSO+WjZbzcMGfVXjD vwGEVoOw9SssFEaxv7Hkpi0f+lUkjdgvRxNPhYqbI1vnc1ch2lKWxFFYJy1+uW5/Be6N hykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=n5CXz62/QlqbaFHCWp+qNkTNqMa/rnzrfdEgxUqNlpc=; b=K9mdT+4oT0qxphpuVi1oMK6tZXNqzunkcw+z1KvkrmdKsIQGRctDgD9a7bXJ9f45P+ A9yST8Vp0w78FRGTGnO0beVdH4/biuiikrQjTQx/nzBnGp2uOGVdJvJ7yqkALbAeHVLf cH+t6zLUX3y1KdYxRtV5ExaYYPUEK8lJiHMIWSpLs+EfXLc1+s/dDre3tcuw/PVU8ykA d/v5YZLAYk2jXDI2eM9kRPWzM1Jr0Zvnkzp7cLRnfVm8CD/11Ki2OJGXGnEt0/V69d84 by0cTdeHMjV0n9PG2PIjT3w634Aj5NllTBvrrQXrjNMGAmUpzcmfyMZ3jmuBUsDh3Y3C YjdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=ZEnW2+gm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si8840647plx.227.2018.07.06.13.59.19; Fri, 06 Jul 2018 13:59:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=ZEnW2+gm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934651AbeGFU6N (ORCPT + 99 others); Fri, 6 Jul 2018 16:58:13 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:40130 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933982AbeGFU6J (ORCPT ); Fri, 6 Jul 2018 16:58:09 -0400 Received: by mail-qt0-f196.google.com with SMTP id h4-v6so11030650qtj.7 for ; Fri, 06 Jul 2018 13:58:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=n5CXz62/QlqbaFHCWp+qNkTNqMa/rnzrfdEgxUqNlpc=; b=ZEnW2+gmWp1sWSKbVCbeeYR0RCHaNjuisPT9kaj1WkWbYXMyIbuacxMkkPusj+HCC9 AEvUqmmpJ50x40N6Om8hz9GL8GQaCu0cdaTHiBbhHWLWces9GzcwySiEQqCiz8EKrC+F aN1duLQJ/L113naTAbAZgVDufci9cwOdMhEmZbwutkeT7QQWv97QEh6vsTfuGXONFEE7 76PNCR5MYsrKJL3VNwurI/LFIgiVr+AjjFutcs8WKfw3Xd6EkXj2L6LI/9CgbDW3uGli VTtN3CapQnFzdez5e1yTLmU+6qUUv8ZB1+4msCbDXz1hcKG0T1wOiHJaWsn4BoU/tv6q Dy4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=n5CXz62/QlqbaFHCWp+qNkTNqMa/rnzrfdEgxUqNlpc=; b=IlyOMfn5QW3k/XSAE75knStiwBeQX3sV1gedWlfvVAuvL7mRQvIsrxmnX2WCDuG5sM bdQBKq+03Svmr1ps5uEREoeI8qrKJS5KcstgQK+qor//3SviQ3rblaK0uHtJMnyUY8+W MHFdshyWrzfgbhZH6p57240hjoITFwMqVswR8/Ovo8gHSu4N1NrFg/b7pT4pXbURKYGA eScqbu0jEb0KGbw3Pyr0+b+RKS0Rd2Q+sYVz+dCh0uUq+he5bgthXy2DZevNHu6t1oKh uCOqHN5dPUcHzcI6z9mtItEhk87dTpcIDkq5bhAZokEaay4QuJ77oGnjgXxQeLXZ0LAK p5Zg== X-Gm-Message-State: APt69E1STVlrZU3SNCV5Rf0x+uDwhZP3dBEbcYG0xfdnlCQ4PCP5qRY0 xWYRsJtoB+43Rtw1mchDcrGuXZVC X-Received: by 2002:a0c:d6c7:: with SMTP id l7-v6mr10215961qvi.36.1530910688977; Fri, 06 Jul 2018 13:58:08 -0700 (PDT) Received: from cakuba.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id l185-v6sm6004786qkc.87.2018.07.06.13.58.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 13:58:08 -0700 (PDT) Date: Fri, 6 Jul 2018 13:58:05 -0700 From: Jakub Kicinski To: Roman Gushchin Cc: , , , Quentin Monnet , Daniel Borkmann , Alexei Starovoitov Subject: Re: [PATCH v2 bpf-next 3/3] bpftool: add bash completion for cgroup tree command Message-ID: <20180706135805.1d90ff33@cakuba.netronome.com> In-Reply-To: <20180706183012.6475-3-guro@fb.com> References: <20180706183012.6475-1-guro@fb.com> <20180706183012.6475-3-guro@fb.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Jul 2018 11:30:12 -0700, Roman Gushchin wrote: > This commit adds a bash completion to the bpftool cgroup tree > command. > > Signed-off-by: Roman Gushchin > Cc: Jakub Kicinski > Cc: Quentin Monnet > Cc: Daniel Borkmann > Cc: Alexei Starovoitov > --- > tools/bpf/bpftool/bash-completion/bpftool | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool > index fffd76f4998b..82681eb9c02a 100644 > --- a/tools/bpf/bpftool/bash-completion/bpftool > +++ b/tools/bpf/bpftool/bash-completion/bpftool > @@ -414,6 +414,9 @@ _bpftool() > _filedir > return 0 > ;; > + tree) > + _filedir > + return 0 Oh you have not tested this at all, have you? You're missing ;; at the end of the case, this is not correct bash syntax and completely breaks the script. When you respin please use spaces instead of tabs (I know, *very* annoying but that's apparently how things should be for bash completions :/). And please add "tree" to the *) case which completes the actions. > attach|detach) > local ATTACH_TYPES='ingress egress sock_create sock_ops \ > device bind4 bind6 post_bind4 post_bind6 connect4 \