gysiang / minishell

0 stars 1 forks source link

Double Quotes + Single Quotes_2 #288

Closed axellee1994 closed 2 months ago

axellee1994 commented 2 months ago

Selvam Testcases: axlee@axlee:~/Desktop/42_minishell$ echo $USER+’$HOME’+”$USER9999” axlee+’/home/axlee’+””

Ours: axlee@axlee:~/Desktop/42_minishell$ ./minishell minishell$ echo $USER+echo $USER+’$HOME’+”$USER9999” axlee +’$HOME’+”$USER9999”

gysiang commented 2 months ago

This seems like a wrong example, the single quoted $HOME should not expand at all. I copied into bash and it was not a single quote which is not required in the pdf.

axellee1994 commented 2 months ago

@gysiang Did you click edit and then copy it into bash?

axellee1994 commented 2 months ago

image

gysiang commented 2 months ago

yes, i got the same result as your picture. That is not single quote.

axellee1994 commented 2 months ago

The single quote I can understand but we will still need to resolve the "USER9999" issue.