Commit 045f988
committed
fix(interpreter): get_ifs_separator respects local IFS
get_ifs_separator() only checked self.variables for IFS, missing
local IFS declarations stored in call_stack.locals. This caused
local IFS=":" to have no effect on "${arr[*]}" array joining.
Fix: use expand_variable("IFS") which checks locals first.1 parent 9ba8460 commit 045f988
2 files changed
+28
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7980 | 7980 | | |
7981 | 7981 | | |
7982 | 7982 | | |
7983 | | - | |
7984 | | - | |
7985 | | - | |
| 7983 | + | |
| 7984 | + | |
| 7985 | + | |
| 7986 | + | |
| 7987 | + | |
| 7988 | + | |
| 7989 | + | |
7986 | 7990 | | |
7987 | 7991 | | |
7988 | | - | |
7989 | | - | |
| 7992 | + | |
7990 | 7993 | | |
7991 | 7994 | | |
7992 | 7995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2485 | 2485 | | |
2486 | 2486 | | |
2487 | 2487 | | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
| 2492 | + | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
2488 | 2508 | | |
2489 | 2509 | | |
2490 | 2510 | | |
| |||
0 commit comments