TR-42 / minishell

https://tr-42.github.io/minishell/
0 stars 0 forks source link

DQUOTEで末尾に空白があるとバグる? #31

Closed TetsuOtter closed 1 year ago

TetsuOtter commented 1 year ago
% ./obj/test_serializer '"$a "'

argv[1]: '"$a "'
cmd[0] ~~~~~~~~~~~~~~~~~~ (isValid?: CMD_INVAL_NO_ERR at 1)
        elem[ 0]:   CMDTYP_QUOTE_VAR 'a'(2 .. 1) -> spc:1
        elem[ 1]:      CMDTYP_NORMAL '"'(4 .. 41) -> spc:1
        elem[ 2]:      CMDTYP_NORMAL 'Desktop.app/Contents/Resources/app/git'(47 .. 38) -> spc:0
                (AGRC: 1 / isValid?: CMD_INVAL_NO_ERR)