beryllium-org / OS

Beryllium OS, a unix-like operating system for CircuitPython powered microcontrollers. (Formerly known as ljinux)
GNU General Public License v3.0
226 stars 14 forks source link

Follow-up on the core utilities implementations. #15

Open mdaadoun opened 2 years ago

mdaadoun commented 2 years ago

The core utilities list

From POSIX standards and the GNU core utilities here is a list of the commands. This issue can be used to discuss progress, priorities, consistencies and general problems related to those commands in an embedded linux environment like the pico.

More commands, see the implementation of core utils in rust : https://github.com/uutils/coreutils

bill88t commented 2 years ago

Yea, I hadn't quite realised how many they really are..

mdaadoun commented 2 years ago

I will start more and less pagers

bill88t commented 2 years ago

The api is there to make these external commands. See cat.

marios-pz commented 2 years ago

deprecate [compress, uncompress, zip, unzip ] because they can be fulfilled in one go just by making tar and its far more superior 😎 (also untar? 👀 ) if its really requested they can return back as ljinux packages rather than bloating the source.

sh is not existent for us since we build based and not bash. I don't have time to analyze all tools but hopefully -6 tools should save time.

bill88t commented 2 years ago

All of these tools can be implemented as based scripts with the inclusion of pexec and fpexec. There is not source bloating. However, we are still limited to the 1mb of storage the pico offers. Until my custom installer is done, we have to keep it below that. (Souce folder is excluded from size calculations.)

bill88t commented 2 years ago

Instead of providing an installer i'm instead relying on the makefile to do all the heavy lifting. All extra apps (games and stuff we will eventually make) will be included as makefile targets. So there is no reason whatsoever to worry about having too many apps.

bill88t commented 2 years ago

Less has been added. tar / untar, zip / unzip, compress / uncompress are not doable, added jz instead.

bill88t commented 1 year ago

alias & all the sums are now in

bill88t commented 2 months ago

mv has been added. cp and rm were also reworked to be a lot more stable (and destructive).