fix(linux-shell): fix bash version parsing

This commit is contained in:
utox39
2026-02-13 15:34:44 +01:00
parent 0cc20bcce6
commit 739b8d49f0

View File

@@ -31,7 +31,7 @@ fn parseBashVersion(shell_version_output: []u8) ?[]u8 {
const version_keyword_index = std.mem.indexOf(u8, shell_version_output[0..end_index.?], version_keyword); const version_keyword_index = std.mem.indexOf(u8, shell_version_output[0..end_index.?], version_keyword);
if (version_keyword_index == null) return null; if (version_keyword_index == null) return null;
return shell_version_output[version_keyword_index.? + version_keyword.len .. end_index.?]; return shell_version_output[version_keyword_index.? + version_keyword.len .. end_index.? + 1];
} }
pub fn getTerminalName(allocator: std.mem.Allocator, environ: std.process.Environ) ![]u8 { pub fn getTerminalName(allocator: std.mem.Allocator, environ: std.process.Environ) ![]u8 {