Skip to content

Conversation

@Pilse
Copy link
Contributor

@Pilse Pilse commented Jan 9, 2021

-& 가 중간에 오면 parsing이 중단되는 점을 수정했습니다.
-호출하는 함수마다 index를 인자로 주어 arg의 크기를 알 수 있게 하였습니다.

execvp(*arg,arg);
return true;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

함수를 끝내는 return이 산재해있다는 느낌이 들긴 하지만, OK입니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 23 오타
change_direcory(arg); -> change_directory(arg);

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 1,2,3 #include <...> 띄어쓰기 한번만 확인해주시면 좋을거같습니다.

@Pilse Pilse force-pushed the feature-command_line branch from 9ad091e to f4321d1 Compare January 12, 2021 14:33
{
return true;
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

후에 if(type == ??)문 물음표 자리에 숫자 대신 상수 식별자만 들어가면 될 것 같습니다. OK

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

36~43 에서 is_redirection과 is_pipe로 리디렉션, 파이프 여부 검사하고 redirection(arg);과 pipe(arg);에서 자식 프로세스가 exec 하는 과정으로 생각하면 되나요
이 과정이 맞다면 OK입니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change_directory의 전달 인자를 change_directory(arg, index);로 수정 부탁드립니다.
사유 : index 값에 따라 cd 동작이 달라지게 하면 구현하기에 용이할 것 같습니다.

@Pilse Pilse merged commit 0c9af7f into Master-C-Programming:feature-command_line Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants