OSDN Git Service
(root)
/
android-x86
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88dcfcc
)
Only include "[a-z]*.bash" files for completion
author
Kenny Root
<kroot@google.com>
Mon, 18 Jul 2011 18:15:31 +0000
(11:15 -0700)
committer
Kenny Root
<kroot@google.com>
Mon, 18 Jul 2011 18:15:31 +0000
(11:15 -0700)
Some people were using case-insensitive filesystems which broke when
including simply [a-z]* since it matched the uppercase files. Use this
to filter only the actual bash scripts.
Change-Id: Ibfdcf2c091a154f0485545537a044667783a19f7
envsetup.sh
patch
|
blob
|
history
diff --git
a/envsetup.sh
b/envsetup.sh
index
e79fa28
..
f1e7101
100644
(file)
--- a/
envsetup.sh
+++ b/
envsetup.sh
@@
-197,7
+197,7
@@
function addcompletions()
dir="sdk/bash_completion"
if [ -d ${dir} ]; then
- for f in ${dir}/[a-z]*; do
+ for f in ${dir}/[a-z]*
.bash
; do
echo "including $f"
. $f
done