fucalerro / 42-minishell

1 stars 0 forks source link

wrong type flagging #30

Closed Lu-ni closed 7 months ago

Lu-ni commented 7 months ago
/Users/bob/src/42-minishell🌻 > outfile >> outappend < infile cmd1 << heredoc

NODE 0
    node.type: T_OUTFILE_APPEND
    node.file: outfile
    node.delimiter: (null)
    node.cmd: (null)

NODE 1
    node.type: T_HEREDOC
    node.file: outappend
    node.delimiter: (null)
    node.cmd: (null)

NODE 2
    node.type: T_PIPE
    node.file: infile
    node.delimiter: (null)
    node.cmd: (null)

NODE 3
    node.type: T_OUTFILE
    node.file: (null)
    node.delimiter: (null)
    node.cmd: ["cmd1",]

NODE 4
    node.type: T_INFILE
    node.file: (null)
    node.delimiter: heredoc
    node.cmd: (null)
Lu-ni commented 7 months ago

@fucalerro The bug come from my side. I swapped some value in node.h but forgot to adapt the print function.| MB