I'm getting an error when using a script in zsh, but the error only returns a small red x on my prompt instead of stderr. Using the script in bash returns no error and works as expected. I'm just using bare-bones zsh, no OMZ, etc.
Is there a way to output the error in zsh to give me an idea of where to look?
I don't think this has anything to do with the software I'm installing, but rather with zsh; however, I don't even know where to start where to look. More background information for those interested:
I installed a package commonly used for computational fluid dynamics (CFD) simulations called OpenFOAM. OpenFOAM is a project that has many different versions available, and since loading different versions simultaneously results in conflicting namespaces, it's common to use an alias to load a single version into the shell path. For example, my
.zshrc file contains the following lines:
alias of5x="source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc $FOAM_SETTINGS"
alias of4x="source $HOME/OpenFOAM/OpenFOAM-4.x/etc/bashrc $FOAM_SETTINGS"
alias of30x="source $HOME/OpenFOAM/OpenFOAM-3.0.x/etc/bashrc $FOAM_SETTINGS"
When I use the alias to load the most recent version (
5x), I'm greeted with a red
x on my command line: