Extend Bash using Guile
Guile-Bash provides a shared library and set of Guile modules, allowing you to extend Bash in Scheme. Scheme interfaces allow you to access the following aspects of Bash:
aliases;
setting and getting Bash variables;
creating dynamic variables;
creating Bash functions with a Scheme implementation;
reader macro for output capturing;
reader macro for evaluating raw Bash commands.
To enable it, run:
enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
and then run scm example.scm
.
Linter | Message | Location |
---|---|---|
inputs-should-be-minimal Identify inputs that should use their minimal variant | 'bash' should probably switched for its minimal variant |
|