[Intel-gfx] [maintainer-tools PATCH 4/4] dim: fix list-aliases to not include itself
Jani Nikula
jani.nikula at intel.com
Fri Aug 11 15:03:25 UTC 2017
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 at 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
More information about the Intel-gfx
mailing list