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 Bash Subshell EOF Error by Escaping Quotes #12

Closed
wants to merge 4 commits into from
Closed

Fix Bash Subshell EOF Error by Escaping Quotes #12

wants to merge 4 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, thereby preventing the EOF error.

bshutterkion and others added 4 commits February 20, 2024 14:39
Resolved an "unexpected EOF" error encountered when initiating the bash subshell by correctly escaping quotes around the $HOME/.bashrc path in the dynamically generated command string.

- Correctly escape quotes in the bash command to ensure proper interpretation.
@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