terminal just shows [process complete] in a new terminal instance

Full disclosure I'm new to mac but fairly comfortable with UNIX, I was checking to see if my install of .NET Core 8 and launched terminal and i saw this.

I changed my terminal type to /bin/bash from /bin/zsh... I am now able to access the terminal BUT I want to use the system default of zsh... for continuity. If that makes sense.


when using bash...


What can I do to see what process is locking up zsh?


Any advice or assistance is greatly appreciated.

MacBook Pro 14″, macOS 14.5

Posted on Jun 26, 2024 7:00 AM

Question marked as Top-ranking reply

Posted on Jun 26, 2024 7:54 AM

Any exit command in a shell's respective dotfile, or an interactive control-D will cause the Terminal to issue that [Process complete] message. You then need to quit and relaunch the Terminal as the current shell process is toast. Verify that no shell dotfile has that exit command in it. Perhaps something naive in that .NET Core 8 installation process.


I left my Bash shell dotfiles in place though I am using Zsh in the Terminal. Zsh does not read Bash dotfiles and I use just two — ~/.zshrc and ~/.zshenv. You cannot have both shells unless, in a shell script, you use the appropriate shebang for the opposite shell. Although one can manually enter /bin/bash in the Zsh shell, and it will deceptively give you the Bash prompt, it is still the Zsh shell.


To make the Terminal use Zsh, you simply run the change shell (chsh) command shown to you by the Bash shell and configure a ~/.zshrc file. Do not enter any content in the Terminal > Settings > Profiles > Run Command window, or in General Shells open with: take the default login shell.


Only if you do not have a ~/.zshrc file, run the following HERE script which will write the file with PATH and PS1 prompt settings. Revise as needed.


<<"EOF" > ~/.zshrc
export PATH=".:/usr/local/bin:${PATH}"
PS1="%m: %~ %% "
EOF


You probably know to press return after you copy/paste the HERE script to your Terminal window. Then, if you have the Zsh shell running, issue the following command to set these environment variables in the current session:


source ~/.zshrc


5 replies
Question marked as Top-ranking reply

Jun 26, 2024 7:54 AM in response to Community User

Any exit command in a shell's respective dotfile, or an interactive control-D will cause the Terminal to issue that [Process complete] message. You then need to quit and relaunch the Terminal as the current shell process is toast. Verify that no shell dotfile has that exit command in it. Perhaps something naive in that .NET Core 8 installation process.


I left my Bash shell dotfiles in place though I am using Zsh in the Terminal. Zsh does not read Bash dotfiles and I use just two — ~/.zshrc and ~/.zshenv. You cannot have both shells unless, in a shell script, you use the appropriate shebang for the opposite shell. Although one can manually enter /bin/bash in the Zsh shell, and it will deceptively give you the Bash prompt, it is still the Zsh shell.


To make the Terminal use Zsh, you simply run the change shell (chsh) command shown to you by the Bash shell and configure a ~/.zshrc file. Do not enter any content in the Terminal > Settings > Profiles > Run Command window, or in General Shells open with: take the default login shell.


Only if you do not have a ~/.zshrc file, run the following HERE script which will write the file with PATH and PS1 prompt settings. Revise as needed.


<<"EOF" > ~/.zshrc
export PATH=".:/usr/local/bin:${PATH}"
PS1="%m: %~ %% "
EOF


You probably know to press return after you copy/paste the HERE script to your Terminal window. Then, if you have the Zsh shell running, issue the following command to set these environment variables in the current session:


source ~/.zshrc


Jun 26, 2024 8:44 AM in response to VikingOSX

OMG THAT'S IT!!!

thank you so much... there was an ls and an exit at the end of the file.... SMH.


Removed and now zsh is working correctly...

the whole issue I was trying to resolve was surrounding a failure to install pac CLI for Power Platform Tools. It was targeting an older version of the .NET SDK. In the file mentioned I removed the ls and exit lines and added


export DOTNET_ROLL_FORWARD=LatestMajor


to rectify the error with pac CLI for dataverse development.


thank you so much!!!

Jun 26, 2024 8:47 AM in response to Randall_2023

thanks for the advice, it was set to Default login shell...


please see VikingOSX's response... it was the zprofile file!


::feels silly, and vindicated all wrapped up into one crazy emotion::

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

terminal just shows [process complete] in a new terminal instance

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.