Include `bc` in SCALE

Problem/Justification
bc is included in core and is required to do more complex math in scripts such as TrueNAS-Report.

Impact
Minimal impact For those that do not need a command line based calculator

User Story
I envision users being able to use scripts like TrueNAS-Report that require complex math without requiring the user to install additional software in the base system.

7 Likes

Further interest?

It looks like bc can be replaced by awk in the script.

1 Like

+1 for bc

Unfortunately I use ‘awk’ as well, but when you do not have ‘bc’, this is the alternative, and it’s not very difficult to use. I too would like ‘bc’ added but we have asked for it several times in the past. I’m not getting my hopes up.

I submitted a pull requests, let see if they accept it.