[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] store paths in string makes escape fail - Why?
From:       marco-oweber () gmx ! de (Marc Weber)
Date:       2009-12-18 7:15:05
Message-ID: 1261120370-sup-2381 () nixos
[Download RAW message or body]

I've hit this bug multiple times:

let pkgs = import /etc/nixos/nixpkgs/default.nix {};

    bug = true;
    s = "some / slashes / ";

# in  builtins.compareVersions "6.10.4" "ghc-6.10.4"
in pkgs.lib.escape ["/"] "${ if bug then pkgs.nano else s}/bin/sshfs-wrapped"

/ should be escaped in all cases.
But when a store path is inserted into the string escaping isn't done.
Why?

How to fix this?

Marc Weber


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic