nix-hash process substitution example fails with `error: path '/dev/fd/63' is a symlink` on Arch Linux
Describe the bug
I cannot run the echo example for nix-hash nix-hash --type sha256 --flat --base32 <(echo test) from https://nix.dev/manual/nix/2.24/command-ref/nix-hash#examples. Then, I only get error: path '/dev/fd/63' is a symlink.
In fact, if I run any nix-hash command that uses the <(...) syntax for input, this fails.
Steps To Reproduce
- run
nix-hash --type sha256 --flat --base32 <(echo test) - see
error: path '/dev/fd/63' is a symlink
Expected behavior
I expect this to work, as it is an example command. According to the examples 1lkgqb6fclns49861dwk9rzb6xnfkxbpws74mxnx01z9qyv1pjpj should be the correct output.
nix-env --version output
nix-env (Nix) 2.24.7
Additional context
I'm on Arch Linux and used their nix package to install nix.
output of stat <(echo test):
File: /dev/fd/63 -> pipe:[360496]
Size: 64 Blocks: 0 IO Block: 1024 symbolic link
Device: 0,22 Inode: 349772 Links: 1
Access: (0500/lr-x------) Uid: ( 1000/ user) Gid: ( 1000/ user)
Access: 2024-10-11 21:28:46.230728151 +0200
Modify: 2024-10-11 21:28:46.230728151 +0200
Change: 2024-10-11 21:28:46.230728151 +0200
Birth: -
Priorities
Add :+1: to issues you find important.