Juan-aga / Minishell

The Unlicense
2 stars 1 forks source link

I was removing quoted empty tokens #40

Closed emartinez-dev closed 1 year ago

emartinez-dev commented 1 year ago

I thought that bash removed empty things before executing a command, but it only does it if they aren't quoted.

For example:

It should do: "" echo -> bash: : command not found

But in our version it just worked like a regular echo because I removed this kind of token in the parser. I think this bug propagated also into executor as your executor didn't handle empty executables or commands before.