From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: jani.nikula@intel.com
Subject: [maintainer-tools PATCH 4/4] dim: fix list-aliases to not include itself
Date: Fri, 11 Aug 2017 18:03:25 +0300 [thread overview]
Message-ID: <20170811150325.11033-4-jani.nikula@intel.com> (raw)
In-Reply-To: <20170811150325.11033-1-jani.nikula@intel.com>
dim list-aliases lists "list-aliases" as being an alias of
"list-aliases". This is because the temporary subcmd variable reference
is erroneously included in the list. Unset it.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
dim | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dim b/dim
index d9820ac87358..011cedbd3b6a 100755
--- a/dim
+++ b/dim
@@ -2053,4 +2053,7 @@ if ! declare -f $subcmd_func >/dev/null; then
exit 1
fi
+# throw away to not confuse list-aliases
+unset subcmd
+
$subcmd_func "$@"
--
2.11.0
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2017-08-11 14:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 15:03 [maintainer-tools PATCH 1/4] doc: add documentation for dim commit-add-tag Jani Nikula
2017-08-11 15:03 ` [maintainer-tools PATCH 2/4] dim: remove dim cherry-pick-branch subcommand Jani Nikula
2017-08-11 17:52 ` Rodrigo Vivi
2017-08-11 15:03 ` [maintainer-tools PATCH 3/4] dim: remove af and anf aliases Jani Nikula
2017-08-11 17:58 ` Rodrigo Vivi
2017-08-11 15:03 ` Jani Nikula [this message]
2017-08-11 17:57 ` [maintainer-tools PATCH 4/4] dim: fix list-aliases to not include itself Rodrigo Vivi
2017-08-11 17:47 ` [maintainer-tools PATCH 1/4] doc: add documentation for dim commit-add-tag Rodrigo Vivi
2017-08-14 9:16 ` Jani Nikula
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=20170811150325.11033-4-jani.nikula@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.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