Open
Description
Current Behavior (bug)
To reproduce, run these commands:
foo() { echo foo; }
export -f foo
devbox shell
This error appears:
bash: export: `BASH_FUNC_foo%%=() { echo foo}': not a valid identifier
Despite the error, the foo
function is still available in the shell.
Expected Behavior (fix)
The error should not appear.
Additional context
My devbox version -v
:
Version: 0.4.9
Platform: linux_amd64
Commit: b03f0d26da3df4318f2a8d70c0531c0c77d0d33c
Commit Time: 2023-05-02T23:26:52Z
Go Version: go1.20.3
Launcher: 0.2.0