From: Iain Patterson Date: Wed, 21 Apr 2010 13:27:04 +0000 (+0100) Subject: Try to change to directory from which become was run. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=03299d51be7e3110ac72c97061cf4504050eaea4;p=profile.git Try to change to directory from which become was run. --- diff --git a/opt/bin/become b/opt/bin/become index b6b2f20..26298cb 100755 --- a/opt/bin/become +++ b/opt/bin/become @@ -69,6 +69,7 @@ fi echo >&3 ". $HOME/.bash_profile" [ -f "$BECOME/all" ] && cat >&3 2>/dev/null "$BECOME/all" [ -f "$BECOME/$user" ] && cat >&3 2>/dev/null "$BECOME/$user" +echo >&3 2>/dev/null "cd - &>/dev/null" exec 3>&- dir=$(dirname "$0")