[Assorted-commits] SF.net SVN: assorted:[1109] shell-tools/trunk/src/bash-commons/bashrc.bash
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-12-19 23:46:02
|
Revision: 1109 http://assorted.svn.sourceforge.net/assorted/?rev=1109&view=rev Author: yangzhang Date: 2008-12-19 23:45:53 +0000 (Fri, 19 Dec 2008) Log Message: ----------- fixed some bugs Modified Paths: -------------- shell-tools/trunk/src/bash-commons/bashrc.bash Modified: shell-tools/trunk/src/bash-commons/bashrc.bash =================================================================== --- shell-tools/trunk/src/bash-commons/bashrc.bash 2008-12-19 23:44:40 UTC (rev 1108) +++ shell-tools/trunk/src/bash-commons/bashrc.bash 2008-12-19 23:45:53 UTC (rev 1109) @@ -77,7 +77,7 @@ # Safely prepend the usual locations (USER_PREFIX, etc.) for a standard # subdirectory (bin, lib, etc). function prepend_std { - local var="$1" subdirs= pieces=() + local var="$1" subdirs= pieces= shift for subdir in "$@" ; do if [[ "${subdir:0:1}" == / || "$subdir" == '' ]] ; then @@ -687,6 +687,7 @@ # TODO note that bash_completion usually does a ton of stuff (and in # particular it re/undefines `have`), so it's best to move this near the # top + # Note that this tends to be the most expensive part of my startup. if [[ -f /etc/bash_completion && -z "$BASH_COMPLETION" ]] then . /etc/bash_completion fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |