Rename help function in envsetup.sh to be hmm

Bash has a built-in command "help" that is useful for getting
help on bash commands without wading through the bash man page
(e.g. "help test" will give you the syntax for those "if [ ]"
expressions).  Overwriting a built-in with a convenience function
is not good.

The function "hmm" was added recently that serves much the same
purpose as help.  It seems like a good idea to remove the new
"hmm" command and rename "help" to be "hmm" so we no longer
overwrite the built-in.

Change-Id: I2079b3e6a10715956ec077d31e817a939c6ee4a0
Signed-off-by: Scott Anderson <saa@android.com>
This commit is contained in:
Scott Anderson 2012-03-07 17:15:06 -08:00
parent 1576159807
commit 1a5fc95a4a
1 changed files with 1 additions and 12 deletions

View File

@ -1,4 +1,4 @@
function help() {
function hmm() {
cat <<EOF
Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- croot: Changes directory to the top of the tree.
@ -658,17 +658,6 @@ function mmm()
fi
}
function hmm()
{
cat <<EOF
- m: Makes from the top of the tree.
- mm: Builds all of the modules in the current directory.
- mmm dir: Same as 'cd dir; mm'
Type 'help' for more commands.
EOF
}
function croot()
{
T=$(gettop)