nix develop
works OK. But with --ignore-environment
I get:
[dpc@localhost-live flakebox]$ nix develop --ignore-environment
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
/usr/libexec/grepconf.sh: line 5: grep: command not found
bash: tr: command not found...
Packages providing this file are:
'coreutils'
'coreutils-single'
bash: readlink: command not found...
Packages providing this file are:
'coreutils'
'coreutils-single'
bash: basename: command not found...
Packages providing this file are:
'coreutils'
'coreutils-single'
What seems to be happening is that environment is wiped, yet bash executes some scripts from system’s /etc/bash_completions.d/...
which expect some commands that are not available.
No idea who’s “fault” it is. Should nix
start bash that does not call system’s init file? Or is it built in somewhere and hard to avoid?