Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bash: configure default value of BASH_LOADABLES_PATH
See: https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#index-enable See: http://git.savannah.gnu.org/cgit/bash.git/tree/config-top.h#n80 This enables shorter syntax for loading stock Bash builtins. For example, instead of doing this: enable -f $(brew --prefix)/lib/bash/csv csv the user can now load the `csv` builtin directly: enable csv To complete the example, we can now do this: $ echo $BASH_LOADABLES_PATH /opt/homebrew/Cellar/bash/5.2.32/lib/bash:/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. $ type csv -bash: type: csv: not found $ enable csv $ type csv csv is a shell builtin $ help csv csv: csv [-a ARRAY] string Read comma-separated fields from a string. Parse STRING, a line of comma-separated values, into individual fields, and store them into the indexed array ARRAYNAME starting at index 0. If ARRAYNAME is not supplied, "CSV" is the default array name. $ csv 'a,"b",c' $ declare -p CSV declare -a CSV=([0]="a" [1]="b" [2]="c") $ enable -n csv $ type csv -bash: type: csv: not found
- Loading branch information