minishellakirawchen / mini_shell

It is a cooperate subject to create mini_shell
0 stars 0 forks source link

9-implement expansion part #9

Open ak0327 opened 1 year ago

ak0327 commented 1 year ago

expansion variables

ak0327 commented 1 year ago
ak0327 commented 1 year ago
minishell $> echo $? $$ $$? $?? $SHELL $SHELL$hoge$USER
input            :[echo $? $$ $$? $?? $SHELL $SHELL$hoge$USER]
pipe_splitted    :{"echo", "$?", "$$", "$$?", "$??", "$SHELL", "$SHELL$hoge$USER"}
update cmds      :{"echo", "$?", "$$", "$$?", "$??", "$SHELL", "$SHELL$hoge$USER"}

#DEBUG[print_stack : check tree]
 [root]
  |    
 [shell]
  |    
 [cmd]--{"echo", "$?", "$$", "$$?", "$??", "$SHELL", "$SHELL$hoge$USER"}

#DEBUG[print_stack : check tree after expansion]
 [root]
  |    
 [shell]
  |    
 [cmd]--{"echo", "0", "65550", "65550?", "0?", "/bin/zsh", "/bin/zshakira"}

 vvvvv Execution vvvvv
0 65550 65550? 0? /bin/zsh /bin/zshakira
 ^^^^^ Execution ^^^^^
ak0327 commented 1 year ago

残課題は以下の通り

新鮮な気持ちでコードを再確認したいため、一旦中断。 [#12]arrangementを進める