{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14256","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14256/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14256/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14256/events","html_url":"https://github.com/NixOS/nixpkgs/issues/14256","id":143852099,"number":14256,"title":"zsh not initialized correctly (ssh logins)","user":{"login":"olejorgenb","id":72201,"avatar_url":"https://avatars.githubusercontent.com/u/72201?v=3","gravatar_id":"","url":"https://api.github.com/users/olejorgenb","html_url":"https://github.com/olejorgenb","followers_url":"https://api.github.com/users/olejorgenb/followers","following_url":"https://api.github.com/users/olejorgenb/following{/other_user}","gists_url":"https://api.github.com/users/olejorgenb/gists{/gist_id}","starred_url":"https://api.github.com/users/olejorgenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olejorgenb/subscriptions","organizations_url":"https://api.github.com/users/olejorgenb/orgs","repos_url":"https://api.github.com/users/olejorgenb/repos","events_url":"https://api.github.com/users/olejorgenb/events{/privacy}","received_events_url":"https://api.github.com/users/olejorgenb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/7","html_url":"https://github.com/NixOS/nixpkgs/milestones/16.03","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/7/labels","id":1055044,"number":7,"title":"16.03","description":"","creator":{"login":"thoughtpolice","id":3416,"avatar_url":"https://avatars.githubusercontent.com/u/3416?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtpolice","html_url":"https://github.com/thoughtpolice","followers_url":"https://api.github.com/users/thoughtpolice/followers","following_url":"https://api.github.com/users/thoughtpolice/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpolice/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpolice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpolice/subscriptions","organizations_url":"https://api.github.com/users/thoughtpolice/orgs","repos_url":"https://api.github.com/users/thoughtpolice/repos","events_url":"https://api.github.com/users/thoughtpolice/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpolice/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":177,"state":"open","created_at":"2015-04-06T19:40:15Z","updated_at":"2016-04-01T16:32:56Z","due_on":"2016-03-30T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-03-27T21:51:07Z","updated_at":"2016-04-01T16:32:56Z","closed_at":"2016-04-01T16:32:56Z","body":"## Basic info\r\n\r\nTo make sure that we are on the same page:\r\n\r\n* Kernel: (run `uname -a`) Linux lapole 3.18.25 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 GNU/Linux\r\n* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...) 15.09.952.55b0326 (Dingo)\r\n* Nix version: (run `nix-env --version`) nix-env (Nix) 1.10\r\n* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`) 16.03pre75806.77f8f35\r\n\r\n## Describe your issue here\r\nI installed zsh-5.2 from nixpkgs channel to get away from a 5.0.8 bug. After I changed my login-shell to 5.2, ssh logins were no longer functional. Ie. PATH wasn't fully initialized.\r\n\r\nReverting to 5.0.8 fixed the problem.\r\n\r\nI'm not sure why there's a difference between regular login shells and ssh though. \r\n\r\nRunning `strings /nix/store/*zsh-5.2/bin/zsh` yields:\r\n\r\n    /etc/profile\r\n    .profile`\r\n    /etc/suid_profile\r\n    $out/etc/zprofile\r\n    .zprofile\r\n    profile signal\r\n\r\nFor 5.0.8 I get the expected /nix/store/... path instead of the strange $out path.\r\n\r\nThe line with $out seems wrong.. Checking the commit log I find https://github.com/NixOS/nixpkgs/commit/97332d30f62b149aa81a63f798e7e53825e12663\r\n\r\nDropping into nix-shell for zsh-5.2, setting `set -x` and manually running `configurePhase`I get:\r\n\r\n    + ./configure --prefix=/nix/store/icd9hwav49fign863szpk4s3imn5dm2b-zsh-5.2 <snip> \r\n    --enable-multibyte '--enable-zprofile=$out/etc/zprofile' <snip>\r\n\r\nSo it seems to me that variables in `configureFlags` is not expanded leading to zprofile not being run. It could be something else of course (not everything seems to add up without more investigating), but the $out thing seems wrong either way.\r\n"}}