got some envs
StefanoBelli
released this
31 Mar 22:27
·
16 commits
to master
since this release
-
smalloc is a libc-independent memory allocator, using mmap (may be used freely in other projects, I reccomend fun projects only. It is a very very basic algorithm and may cause high fragmentation and poor performance overall. However, we're only having some fun huh?)
-
smalloc is used to fully implement a "sysh" environment support
-
new "syntax" allows to set variables (already set and new ones, no unset)
$ % CC = gcc
$ %
<number of set env vars>
$ % new = var_set
$ envctl unset new
to unset a variable use the long envctl unset, using % VAR = will lead to segv
- Executable size:
> ldd sysh
not a dynamic executable
> ls -lah sysh
-rwxr-xr-x 1 ssynx ssynx 16K 1 apr 00.20 sysh*
> strip sysh
> ls -lah sysh
-rwxr-xr-x 1 ssynx ssynx 8,6K 1 apr 00.20 sysh*