Skip to content

Commit

Permalink
Linux: allow command substitution when expanding paths
Browse files Browse the repository at this point in the history
Ref: #698
  • Loading branch information
CarterLi committed Jan 23, 2024
1 parent 28ea765 commit 8f51763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/io/io_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ bool ffPathExpandEnv(FF_MAYBE_UNUSED const char* in, FF_MAYBE_UNUSED FFstrbuf* o
#if __has_include(<wordexp.h>) // 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)
Expand Down

0 comments on commit 8f51763

Please sign in to comment.