Skip to content

Releases: bash-bastion/bash-core

v0.5.0

10 Apr 18:39
v0.5.0
a2d8a2f
Compare
Choose a tag to compare

Features

  • new function: core.should_output_color()
  • new function: core.get_package_info()

v0.4.0

09 Apr 02:06
v0.4.0
b513718
Compare
Choose a tag to compare

Features

  • core.trap_{add,remove} now works with multiple signals
  • core.init is now automatically called

Fixes

  • core.stacktrace_print prints the full paths of shell files
  • Several errors correctly print the correct enclosing function
  • Improved (internal) function names and general cleanup

v0.3.2

07 Mar 20:35
v0.3.2
07e4d67
Compare
Choose a tag to compare

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/[email protected]/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/[email protected]/pkg/src/util/util.sh:16)
  in ___global_trap_EXIT_handler___ (/home/edwin/.local/share/basalt/store/packages/github.com/hyperupcall/[email protected]/pkg/src/public/bash-core.sh:62)

v0.3.1

07 Mar 20:22
v0.3.1
6755852
Compare
Choose a tag to compare

Fixes

  • Undo deletion of core.trap_common_global_handler function. This was removed during some code refactor; I suppose I forgot to run tests after this change. l'll be setting up Hookah for this repository (to run tests before commit) to catch these kind of careless mistakes.

v0.3.0

07 Mar 20:16
v0.3.0
009e9fe
Compare
Choose a tag to compare

Features

  • Add core.stacktrace_print() function for printing the stack trace
  • Substantially improve documentation

v0.2.0

07 Jan 12:44
v0.2.0
9896329
Compare
Choose a tag to compare

Features

  • Merge contents of hyperupcall/bash-error with this project

Fixes

  • core.trap_add now actually works

v0.1.1

26 Oct 23:34
v0.1.1
9e240d1
Compare
Choose a tag to compare

Fixes

Sourcing this package no longer has side effect of creating global variables

v0.1.0

26 Oct 23:22
v0.1.0
d0f1057
Compare
Choose a tag to compare

Initial release

Features

Added functions

  • core.trap_add
  • core.trap_remove
  • core.shopt_push
  • core.shopt_pop

Note that core.trap_add doesn't actually work as intended and shouldn't be used right now