id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
321	cabal in non-existant directory fails	larsv		"To reproduce:
{{{
mkdir foo ; cd foo ; rmdir ../foo ; cabal install regex-pcre
}}}

Result:
{{{
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Resolving dependencies...
'regex-base-0.93.1' is cached.
cabal: Error: some packages failed to install:
regex-base-0.93.1 failed during the configure step. The exception was:
getCurrentDirectory: does not exist (No such file or directory)
regex-pcre-0.94.1 depends on regex-base-0.93.1 which failed to install.
}}}

The first shell-init error occurs even if no package is chosen or any other cabal command is used such as ""list"" or ""upgrade"".
However, that seems to be intrinsic to ghc as it shows when running just the ghc binary as well."	defect	new	low	_|_	Cabal library	1.4.0.1	minor				normal	6.8.3	Linux
