* baseNameOf: paths don't have to be absolute.

This commit is contained in:
Eelco Dolstra 2006-10-17 12:34:13 +00:00
parent 822dba2210
commit 3059df0f1e

View file

@ -311,7 +311,7 @@ static Expr primDerivationLazy(EvalState & state, const ATermVector & args)
static Expr primBaseNameOf(EvalState & state, const ATermVector & args)
{
PathSet context;
return makeStr(baseNameOf(coerceToPath(state, args[0], context)), context);
return makeStr(baseNameOf(coerceToString(state, args[0], context)), context);
}