From 814f273d8875fdcf52bb9cd64c727bfbd0bbf6de Mon Sep 17 00:00:00 2001 From: RiskyMH Date: Mon, 3 Feb 2025 08:39:53 +0000 Subject: [PATCH] maybe this fixes back? --- src/shell/interpreter.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/shell/interpreter.zig b/src/shell/interpreter.zig index b3bf7a1628..a5725ca001 100644 --- a/src/shell/interpreter.zig +++ b/src/shell/interpreter.zig @@ -4782,7 +4782,13 @@ pub const Interpreter = struct { }; const first_arg_len = std.mem.len(first_arg); - const first_arg_real = first_arg[0..first_arg_len]; + var first_arg_real = first_arg[0..first_arg_len]; + + if (bun.Environment.isDebug) { + if (bun.strings.eqlComptime(first_arg_real, "bun")) { + first_arg_real = "bun-debug"; + } + } if (Builtin.Kind.fromStr(first_arg[0..first_arg_len])) |b| { const cwd = this.base.shell.cwd_fd;