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

Syntax error when prompt is empty #18

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

Syntax error when prompt is empty #18

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

Comments

@tesla33io
Copy link
Owner

MS gives a syntax error, whenever the prompt is an empty string (not a command). Correct behavior is to just display prompt again.

$ ./minishell | cat -e
€ echo 123$
123$
€ $
Syntax Error$
@tesla33io tesla33io added the bug Something isn't working label Jul 27, 2024
tesla33io added a commit that referenced this issue Jul 31, 2024
fix: syntax error when empty command

did not tested with multiple redirections

also heredoc and append does not work before the command but MS does not crash either

Refs: #11 #13 #18
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