NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.8k stars 1.52k forks source link

nix-shell does not accept file descriptors #820

Open Profpatsch opened 8 years ago

Profpatsch commented 8 years ago
# nix-shell <(echo "{}")
error: getting status of ‘/dev/fd/pipe:[1260604]��]�0�o�`�o���o�Џo����\�’: No such file or directory

<(…) is a normal idiom in bash to create a file descriptor (which is just a normal file) which is then given to the program expecting a file path. This should work.

Compare:

# echo <(echo "test")
/dev/fd/63
# cat <(echo "test")
test

It does work in fish, because that just creates a temporary file:

> echo (echo "hello" | psub)
/tmp/.psub.ao9oonVeMe
> nix-shell (cabal2nix --shell . | psub)
… shell …
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

stale[bot] commented 2 years ago

I closed this issue due to inactivity. → More info