Re: [BUG] one-shot variables aren't propagated past functions

2020-04-30 Thread Michael Greenberg
On 2020-04-30 06:00:01, Denton Liu wrote: > Hi all, > > I believe that I've encountered a bug in dash 0.5.10.2. With the > following input > > f () { > echo $var > } > > var=test f > echo $var > > I would expect the output to be > > test >

[BUG] one-shot variables aren't propagated past functions

2020-04-30 Thread Denton Liu
Hi all, I believe that I've encountered a bug in dash 0.5.10.2. With the following input f () { echo $var } var=test f echo $var I would expect the output to be test test but the output is actually test