kennethreitz/autoenv — Issue #17: Provide a way to access the default `cd`
Author: d0ugal
Created: 2012-02-29 11:23:52+00:00
State: open

I wanted to add this to my .env file;

PROJECT_NAME="$( basename "$( cd "$(dirname "${BASH_SOURCE}" )" && pwd )")";

However, as you can see the line includes a call to `cd` because of this, the script enters an infinite loop and hangs.

I'm not actually sure if/how this can be improved.