Skip to content

Commit 1337525

Browse files
committed
Shell: fixes xonsh version detection
1 parent 30ea529 commit 1337525

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/detection/terminalshell/terminalshell.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,14 @@ static bool getShellVersionAsh(FFstrbuf* exe, FFstrbuf* version)
204204
return true;
205205
}
206206

207-
static bool getShellVersionXonsh(FFstrbuf* exe, FFstrbuf* version)
207+
static bool getShellVersionXonsh(FF_MAYBE_UNUSED FFstrbuf* exe, FFstrbuf* version)
208208
{
209209
ffStrbufSetS(version, getenv("XONSH_VERSION"));
210210
if (version->length) return true;
211211

212+
// exe is python here
212213
if(ffProcessAppendStdErr(version, (char* const[]) {
213-
exe->chars,
214+
"xonsh",
214215
"--version",
215216
NULL
216217
}) != NULL)

0 commit comments

Comments
 (0)