Favoring BSD based bash, ( os x )

This commit is contained in:
2014-12-21 20:30:42 +08:00
parent 82462832ef
commit 27aee4d5c9
2 changed files with 3 additions and 2 deletions

View File

@@ -95,8 +95,9 @@ __go_nav() {
LISTOF=''
for i in "${!PWDA[@]}"
do
MARK=$i
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
MARK=$i
break
fi
if [[ -n "${PWDA[$i]}" ]]; then