fix: unclosed "
This commit is contained in:
parent
67bf858a49
commit
79405df39d
2 changed files with 2 additions and 3 deletions
1
dev/TODO
1
dev/TODO
|
@ -11,7 +11,6 @@
|
|||
- fix
|
||||
- empty variables aren't freed
|
||||
- the builtins should get all arguments and check if they're good
|
||||
- command `echo "hello` with unclosed quotes
|
||||
|
||||
(unnecessary part)
|
||||
- working history (rl_* functions?)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/24 13:47:40 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/06/25 15:28:41 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/06/25 15:39:55 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -229,7 +229,7 @@ static bool read_string_doublequote(t_parsing_args *args, const char **dest)
|
|||
if (stream_read(&args->stream) != '"')
|
||||
return (false);
|
||||
stream_pop(&args->stream);
|
||||
while (stream_read(&args->stream) != '"')
|
||||
while (stream_read(&args->stream) && stream_read(&args->stream) != '"')
|
||||
{
|
||||
read_until(args, dest, "\"$");
|
||||
if (stream_read(&args->stream) == '$')
|
||||
|
|
Loading…
Add table
Reference in a new issue