From 9989436beb18ab9ae5c44fe9187f81bb7afc59fc Mon Sep 17 00:00:00 2001 From: Matthew Winter <33818+wintermi@users.noreply.github.com> Date: Sat, 30 Dec 2023 04:32:13 +1100 Subject: [PATCH] Ensure the shell environment passes the Login Shell test --- src/termio/Exec.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index 6b1357043..7912875e5 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -883,13 +883,8 @@ const Subprocess = struct { // Awesome. try args.append("/usr/bin/login"); if (hush) try args.append("-q"); - try args.append("-flp"); + try args.append("-fp"); try args.append(username); - - // We execute `env` to run the command (aka shell) in a - // modified environment and not use another shell interpreter - // to launch the shell environment. - try args.append("/usr/bin/env"); try args.append(opts.full_config.command orelse default_path); break :args try args.toOwnedSlice(); }