Skip to content

Commit 08e6db0

Browse files
committed
Shell (Windows): be compatible with fish 4 built by MSYS2
1 parent ec0fa89 commit 08e6db0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/detection/terminalshell/terminalshell.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ static bool getShellVersionFish(FFstrbuf* exe, FFstrbuf* version)
8585
if(!getExeVersionRaw(exe, version))
8686
return false;
8787

88-
//fish, version 3.6.0
89-
ffStrbufSubstrAfterLastC(version, ' ');
88+
//fish, version 4.0.2-1 (Built by MSYS2 project)
89+
ffStrbufSubstrAfterFirstS(version, "version ");
90+
ffStrbufSubstrBeforeFirstC(version, ' ');
9091
return true;
9192
}
9293

0 commit comments

Comments
 (0)