forked from lix-project/lix
* baseNameOf: paths don't have to be absolute.
This commit is contained in:
parent
822dba2210
commit
3059df0f1e
|
@ -311,7 +311,7 @@ static Expr primDerivationLazy(EvalState & state, const ATermVector & args)
|
||||||
static Expr primBaseNameOf(EvalState & state, const ATermVector & args)
|
static Expr primBaseNameOf(EvalState & state, const ATermVector & args)
|
||||||
{
|
{
|
||||||
PathSet context;
|
PathSet context;
|
||||||
return makeStr(baseNameOf(coerceToPath(state, args[0], context)), context);
|
return makeStr(baseNameOf(coerceToString(state, args[0], context)), context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue