Skip to content
Unverified Commit 2d42fc24 authored by Graham Christensen's avatar Graham Christensen
Browse files

nixos-enter: redirect to fd2 instead of a file named /dev/stderr



In some cases, /dev/stderr may not point to a sensible location. For
example, running nixos-enter inside a systemd unit where the unit's
StandardOutput and StandardError are set to be sockets. In these
cases, this line would fail.

Piping to fd2 directly works just as well, even under strange and
twisted executions.

Co-authored-by: default avatarMichael Bishop <michael.bishop@iohk.io>
parent 08444aa0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment