hyudai28 / minishell_42

0 stars 1 forks source link

5/15 通しテスト 問題点 #11

Closed hyudai28 closed 2 years ago

hyudai28 commented 2 years ago

1./bin/cat Makefile or cat Makefile で何も表示されない

hyudai28 commented 2 years ago

minishell > /asda/asd minishell: /asda/asd: command not found

bash-5.1$ /bin/asda bash: /bin/asda: No such file or directory bash-5.1$ dasda bash: dasda: command not found

/のあるなしでエラーメッセージが違いそう

hyudai28 commented 2 years ago

minishell > echo "$USER" ERROR "quotation has no pair"

hyudai28 commented 2 years ago

/bin/ls filethatdoesntexist 終了ステータスが0になっている bashは1

hyudai28 commented 2 years ago

minishell > echo $USER hyudai minishell > export USER=me minishell > echo $USER hyudai

meに変わるべき

hyudai28 commented 2 years ago

minishell > unset $mukobar minishell > echo $mukobar yuta

hyudai28 commented 2 years ago

isspaceが残ってる

hyudai28 commented 2 years ago

minishell > cat Makefile | grep CC > c CC = gcc

$(CC) $(CFLAGS) $(OBJS) $(LIBFLAGS) -o $(NAME)

$(CC) $(CFLAGS) -c $< -o $@

    $(CC) $(CFLAGS) $(OBJS) $(LIBFLAGS) -o $(NAME)
    $(CC) $(OBJ_FLAG) -c $< -o $@
    $(CC) $(CFLAGS) $(DEBUG) $(LIBFLAGS) $(OBJS) -o $(NAME)
hyudai28 commented 2 years ago

unset が機能していない unsetで消すのはminishellで新たに作成されたものだけ、 Exportで作る際にflagが必要