Skip to content

Bash functions will not carry over in eessi shell #19

@Crivella

Description

@Crivella

Also related to

Having PROMPT_COMMAND set when calling eessi shell ... eg

crivella@crivella-desktop:~$ echo $PROMPT_COMMAND 
_direnv_hook;posh-git

will cause a non-zero exit code due to the functions called not being defined and hence exit the shell right away

3.06/software/linux/x86_64/intel/haswell/modules/all to $MODULEPATH...
Environment set up to use EESSI (2023.06), have fun!
_direnv_hook: command not found
ERROR: Non-zero exit code detected for interactive shell!

I think there could be an argument in always resetting the environment by default when calling eessi shell with .run(..., env={}) and possibly allow passing the current environment with an option

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions