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

Quotes Not Being Removed Correctly #10

Closed
tesla33io opened this issue Jul 14, 2024 · 0 comments
Closed

Quotes Not Being Removed Correctly #10

tesla33io opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tesla33io
Copy link
Owner

Minishell currently fails to correctly remove quotes from the input. Here’s an example demonstrating the problem:

Example Command and Output:

$ ./minishell
(/home/artem/projects/minishell) $> echo "some  " extra "  spaces"
"some  " extra "  spaces"

The expected output should not contain the " characters:

some   extra   spaces

The same issue occurs with redirections:

When redirecting output to a file, quotes are not removed correctly:

$ ./minishell
(/home/artem/projects/minishell) $> echo "This text goes inside a file =D" > file1

$ cat file1
"This text goes inside a file =D"

Expected Behavior:
The content in file1 should be:

This text goes inside a file =D
@tesla33io tesla33io added the bug Something isn't working label Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants