Shell (Windows): be compatible with fish 4 built by MSYS2

This commit is contained in:
李通洲
2025-08-19 17:25:04 +08:00
parent ec0fa89cc8
commit 08e6db090b
+3 -2
View File
@@ -85,8 +85,9 @@ static bool getShellVersionFish(FFstrbuf* exe, FFstrbuf* version)
if(!getExeVersionRaw(exe, version))
return false;
//fish, version 3.6.0
ffStrbufSubstrAfterLastC(version, ' ');
//fish, version 4.0.2-1 (Built by MSYS2 project)
ffStrbufSubstrAfterFirstS(version, "version ");
ffStrbufSubstrBeforeFirstC(version, ' ');
return true;
}