darlinghq / darling

Darwin/macOS emulation layer for Linux

Home Page:http://www.darlinghq.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`sudo` does not accept `VAR=value`

ShamrockLee opened this issue · comments

Expected Result

The following command should work:

sudo HOME=/Volumes/SystemRoot/home/janedoe ls

Actual Result

Running sudo failed: No such file or directory

Steps To Reproduce

  1. Type the command mentioned in the "Expected Result" section

System Information
x86_64-linux NixOS

$ cat /etc/os-release
BUILD_ID="23.05.20230604.e7603eb"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 23.05 (Stoat)"
SUPPORT_END="2023-12-31"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="23.05 (Stoat)"
VERSION_CODENAME=stoat
VERSION_ID="23.05"
$ nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.31, NixOS, 23.05 (Stoat), 23.05.20230604.e7603eb`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.0`
 - nixpkgs: `/nix/store/q6p550fq8sx3xxhb256x3pdbxj1r88wm-source`
Software Version
Linux Kernel 6.1.31
Darling 557e7e9