News for hackers. Stuff that matters.
Re:Bash 5.0 released by nothrabannosir on Tuesday January 08, 2019 @03:14AM (#18854110)
Please no. The parallel universe Me where I didn't happen to read this random thread would never know, consequently never expect random variables to do that. And curse you forever if I found out while banging my head debugging some buggy script.
Re:Bash 5.0 released by IshKebab on Tuesday January 08, 2019 @03:27AM (#18854162)
Yeah what's wrong with functions? Clearly the Bash developers are continuing their tradition of obeying the principle of most surprise.
Re:Bash 5.0 released by john-aj on Tuesday January 08, 2019 @06:22AM (#18854788)
Judging from this thread, Bash doesn’t seem to be the only shell to support these types of variables, but I agree – it’s unintuitive and surprising.