From 8f51763374688653e9253b3927d92cf7b10be18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 23 Jan 2024 13:13:30 +0800 Subject: [PATCH] Linux: allow command substitution when expanding paths Ref: https://github.com/fastfetch-cli/fastfetch/discussions/698 --- src/common/io/io_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/io/io_unix.c b/src/common/io/io_unix.c index 029aaab62..2f1205260 100644 --- a/src/common/io/io_unix.c +++ b/src/common/io/io_unix.c @@ -115,7 +115,7 @@ bool ffPathExpandEnv(FF_MAYBE_UNUSED const char* in, FF_MAYBE_UNUSED FFstrbuf* o #if __has_include() // https://github.com/termux/termux-packages/pull/7056 wordexp_t exp; - if(wordexp(in, &exp, WRDE_NOCMD) != 0) + if(wordexp(in, &exp, 0) != 0) return false; if (exp.we_wordc == 1)