mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
pipeline parse: note that | token at the end may lead to undefined behaviour
This commit is contained in:
parent
a8711568c1
commit
8606774781
1 changed files with 4 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/24 14:36:43 by khais #+# #+# */
|
||||
/* Updated: 2025/02/24 15:21:37 by khais ### ########.fr */
|
||||
/* Updated: 2025/02/24 15:53:04 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -92,6 +92,9 @@ static void pipeline_delimit(t_pipeline_builder *builder)
|
|||
** additional memory freeing is required.
|
||||
** in case of error in pipeline_delimit, it will call destroy, which will set
|
||||
** builder->pipeline to NULL
|
||||
**
|
||||
** Note: if there is a | token at the end of the input stream, the results are
|
||||
** undefined.
|
||||
*/
|
||||
t_pipeline *pipeline_parse_wordlist(t_pipeline_builder *builder)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue