Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "unexpected EOF" Error in Bash Subshell Command #13

Closed
wants to merge 2 commits into from
Closed

Fix "unexpected EOF" Error in Bash Subshell Command #13

wants to merge 2 commits into from

Conversation

bshutterkion
Copy link
Collaborator

Problem Description:
Users experienced an "unexpected EOF while looking for matching \"" error when initiating a bash subshell with a custom prompt on Linux systems. This was due to improperly escaped quotes in the command string for sourcing the user's .bashrc file and setting the PS1 variable.

Solution:
The fix corrects the command string's escape mechanism for quotes around $HOME/.bashrc. Proper escaping ensures that the shell interprets the entire command correctly, preventing the EOF error.

bshutterkion and others added 2 commits February 27, 2024 16:11
Correctly escape quotes in the bash subshell initiation command to prevent "unexpected EOF" errors when sourcing .bashrc and setting PS1.
Fix unexpected EOF error in bash subshell command
@bshutterkion bshutterkion closed this by deleting the head repository Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant