Nixpkgs: ZSH getent

Created on 3 Nov 2016  路  3Comments  路  Source: NixOS/nixpkgs

Issue description

The getent command is replaced by zsh with a function. In share/zsh/5.2/function/compaudit there is a check

[[ -x /usr/bin/getent ]] || getent() {
...etc

Should we just undefine that function or is this better to address with upstream?

Steps to reproduce

Use zsh on a machine where getent is not at that location.

Technical details

  • System: (NixOS: 17.03.git.ad50658)
  • Nix version: (1.11.4)
  • Nixpkgs version: 17.03pre94694.fa4167c
bug community feedback

Most helpful comment

@Mic92 I sent your suggestion to upstream.

All 3 comments

This could be rewritten as:

[[ -n ${commands[getent]} ]] || getent() {

So yes please provide a patch or report this to upstream.

@Mic92 I sent your suggestion to upstream.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

peti picture peti  路  3Comments

ghost picture ghost  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments

rzetterberg picture rzetterberg  路  3Comments

chris-martin picture chris-martin  路  3Comments