Commit 1638f9a
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 b2132b8 commit 1638f9a
2 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7977 | 7977 | | |
7978 | 7978 | | |
7979 | 7979 | | |
7980 | | - | |
7981 | | - | |
7982 | | - | |
| 7980 | + | |
| 7981 | + | |
| 7982 | + | |
| 7983 | + | |
| 7984 | + | |
| 7985 | + | |
| 7986 | + | |
7983 | 7987 | | |
7984 | 7988 | | |
7985 | | - | |
7986 | | - | |
| 7989 | + | |
7987 | 7990 | | |
7988 | 7991 | | |
7989 | 7992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2469 | 2469 | | |
2470 | 2470 | | |
2471 | 2471 | | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2472 | 2492 | | |
2473 | 2493 | | |
2474 | 2494 | | |
| |||
0 commit comments