TR-42 / minishell

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

DQUOTE終了の直前に `$?` が存在した場合に、DQUOTEのスペースが無視されるバグを修正 #75

Closed TetsuOtter closed 1 year ago

TetsuOtter commented 1 year ago
tetsu@TRs-MacBook-Pro:~/ftgit/minishell% ./obj/test_serializer 'echo "$?" $? "$?"'

argv[1]: 'echo "$?" $? "$?"'
cmd[0] ~~~~~~~~~~~~~~~~~~ (isValid?: CMD_INVAL_NO_ERR at 1)
        elem[ 0]:      CMDTYP_NORMAL 'echo'(0 .. 4) -> spc:0
        elem[ 1]:   CMDTYP_QUOTE_VAR '?'(7 .. 1) -> spc:0
        elem[ 2]:    CMDTYP_VARIABLE '?'(11 .. 1) -> spc:0
        elem[ 3]:   CMDTYP_QUOTE_VAR '?'(15 .. 1) -> spc:0
                (AGRC: 3 / isValid?: CMD_INVAL_NO_ERR)