saladuit / minishell

This project is about creating a simple Buzinga. "I am not crazy, my mother had me tested."
MIT License
0 stars 2 forks source link

🐞Expander #37

Closed saladuit closed 1 year ago

saladuit commented 1 year ago

This should be taken care of https://stackoverflow.com/questions/5163144/what-are-the-special-dollar-sign-shell-variables/5163260#5163260

saladuit commented 1 year ago

except $? everything should be invalid input when exporting as key.

saladuit commented 1 year ago

Lexical analyzer should handle all invalid input including unclosed quotes, so that shouldn't be handled by expander

saladuit commented 1 year ago
 1:32:50 ~/repos/minishell
> echo $SHELL$SHELL
/bin/zsh/bin/zsh
 1:33:00 ~/repos/minishell
> echo $SHELL$SHELL$$$$
/bin/zsh/bin/zsh37793779
 1:33:12 ~/repos/minishell
> echo $SHELL$SHELL'$$'$$
/bin/zsh/bin/zsh$$3779
 1:33:24 ~/repos/minishell
> echo "$SHELL$SHELL'$$'$$"
/bin/zsh/bin/zsh'3779'3779
 1:33:36 ~/repos/minishell
saladuit commented 1 year ago

closed by #48