News for hackers. Stuff that matters.
Re:Something about functions in Bash (2017) by reificator on Thursday July 05, 2018 @05:43PM (#17467100)
That is... not the way I generally work around it or see it.

Normally you just use Write-Host when you need it and otherwise just collect return values inside the function by assigning them to variables.

It's basically solved if you never call a command without storing the return value somewhere. Which is not optimal in a scripting language where you just want to get things done, but it's not the end of the world.

There are no comments on this comment yet.