[Nix-dev] string vs path hell
Kirill Elagin
kirelagin at gmail.com
Mon Jun 9 22:07:46 CEST 2014
Yeah.
nix-repl> lib.splitString "/" (toString ./some/vaild/path)
[ "" "tmp" "some" "vaild" "path" ]
--
Кирилл Елагин
On Mon, Jun 9, 2014 at 5:13 PM, Luca Bruno <lethalman88 at gmail.com> wrote:
> On 09/06/2014 15:01, Sergey Mironov wrote:
> > 2014-06-09 16:34 GMT+04:00 Luca Bruno <lethalman88 at gmail.com>:
> >> On 09/06/2014 14:32, Sergey Mironov wrote:
> >>> lib.splitString "-" (toString (./some/valid/path))
> >> Perhaps you should split by "/" instead of "-"?
> > Sorry, this is my copypaste mistake. I've meant another file name. The
> > correct code is
> >
> > lib.splitString "/" (toString (./some/valid/path))
> >
> > the problem does exist for me.
> Works fine for me in nix-repl.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140610/f0a1473b/attachment.html
More information about the nix-dev
mailing list