Releases: bash-bastion/bash-core
Releases · bash-bastion/bash-core
v0.5.0
Features
- new function:
core.should_output_color() - new function:
core.get_package_info()
v0.4.0
Features
core.trap_{add,remove}now works with multiple signalscore.initis now automatically called
Fixes
core.stacktrace_printprints the full paths of shell files- Several errors correctly print the correct enclosing function
- Improved (internal) function names and general cleanup
v0.3.2
Fixes
This renames the functions for handling stack traces so it makes more sense. Previously, it was less readable, like so:
Stacktrace:
in core.stacktrace_print (/home/edwin/.local/share/basalt/store/packages/github.com/hyperupcall/bash-core@v0.3.1/pkg/src/public/bash-core.sh:0)
in global_trap_exit (/home/edwin/Documents/hookah/pkg/src/bin/hookah.sh:5)
in core.trap_common_global_handler (/home/edwin/.local/share/basalt/store/packages/github.com/hyperupcall/bash-core@v0.3.1/pkg/src/util/util.sh:16)
in ___global_trap_EXIT_handler___ (/home/edwin/.local/share/basalt/store/packages/github.com/hyperupcall/bash-core@v0.3.1/pkg/src/public/bash-core.sh:62)v0.3.1
v0.3.0
Features
- Add
core.stacktrace_print()function for printing the stack trace - Substantially improve documentation
v0.2.0
Features
- Merge contents of
hyperupcall/bash-errorwith this project
Fixes
core.trap_addnow actually works
v0.1.1
Fixes
Sourcing this package no longer has side effect of creating global variables
v0.1.0
Initial release
Features
Added functions
core.trap_addcore.trap_removecore.shopt_pushcore.shopt_pop
Note that core.trap_add doesn't actually work as intended and shouldn't be used right now