diff options
author | Ben Taitelbaum <btaitelb@google.com> | 2020-09-22 16:45:05 -0700 |
---|---|---|
committer | Ben Taitelbaum <btaitelb@google.com> | 2020-09-29 20:50:57 +0000 |
commit | 8c2c9cfa9d1178b66054584d6bbc93b935b9efc8 (patch) | |
tree | 87ad0628befd2c3f1864f6a8e42091fd8fde24ab /envsetup.sh | |
parent | 97a498b177e7acd26694c06088173d3ba223a170 (diff) |
Fix conflict with common zsh alias
oh-my-zsh common-aliases plugin defines `alias -g T='| tail'`, which causes an
error with the line `local T dir f`.
Making these lines more explicit resolves this issue, while also being clearer
that the intent is to clear out the local variables.
Bug: 169191000
Fix: 169191000
Test: source build/envsetup.sh; lunch <target>; m
Change-Id: Ief27aa3d9f541d0c39c6c11d7d771818d6493d31
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index b836e543a0..a3b07a76be 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -356,7 +356,7 @@ function should_add_completion() { function addcompletions() { - local T dir f + local f= # Keep us from trying to run in something that's neither bash nor zsh. if [ -z "$BASH_VERSION" -a -z "$ZSH_VERSION" ]; then |