Skip to content

Commit 526997f

Browse files
committed
Don't expand env var before popen
1 parent b1619ac commit 526997f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rwlexpreval.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*
1515
* History
1616
*
17+
* bengsig 16-sep-2022 - Don't call rwlenvexp on RWL_T_PIPETO
1718
* bengsig 15-sep-2022 - New file assignment operators
1819
* bengsig 9-sep-2022 - access: 'p' for RWLOADISM_PATH scan, 'u' for public, 'c' for not cd
1920
* bengsig 13-apr-2022 - Correct NULL with and/or
@@ -940,11 +941,15 @@ void rwlexpreval ( rwl_estack *stk , rwl_location *loc , rwl_xeqenv *xev , rwl_v
940941
case RWL_T_LESSEQ:
941942
case RWL_T_GREATEQ:
942943
case RWL_T_RSHIFTASSIGN:
943-
case RWL_T_PIPETO:
944944
filasn = stk[i].filasn;
945945
filnam = rwlenvexp(xev, loc, cnp->sval);
946946
break;
947947

948+
case RWL_T_PIPETO:
949+
filasn = stk[i].filasn;
950+
filnam = cnp->sval;
951+
break;
952+
948953
case RWL_T_PIPEFROM:
949954
filasn = stk[i].filasn;
950955
// we rwlfree the name when the pipe is closed

0 commit comments

Comments
 (0)