Closed marcobox closed 1 year ago
Sadly I think this is a problem with snap, and I'm not aware of anything that chezmoi can do about this. If you have any ideas, please say.
The only fix seems to be to use a different installation method to snap. There are many to chose from.
Note that for this example:
stdout is also affected:
$ chezmoi completion bash > test.txt chezmoi: write /dev/stdout: permission denied
You can use:
$ chezmoi completion bash -o test.txt
On further investigation, this is a long-standing bug in snap. See https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753.
I'll add an FAQ entry.
Describe the bug
The snap version of chezmoi (v2.25.0) has no access to stdin and stdout. This seems the same issue as #2364 unfortunately I couldn't reopen the bug.
To reproduce
If piping the input using
cat
it works:stdout is also affected:
Expected behavior
Piping to files should work without the need to using cat.
Output of command with the
--verbose
flagreported above
Output of
chezmoi doctor