-
Notifications
You must be signed in to change notification settings - Fork 1
update readme #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
update readme #281
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,84 @@ | ||
| # minishell-prv | ||
| ttsubo, dayanoで進めているMinishellの開発リポジトリ | ||
| # minishell | ||
|
|
||
| ## 概要 | ||
| - ttsubo, dayanoで進めているMinishellの開発リポジトリ | ||
| - このリポジトリはforkされたリポジトリです。オリジナルは[こちら](https://github.com/cacapon/minishell)です。 | ||
| - 開発はGitHub Flowを用いて進め、ブランチ運用・レビューを行いました。 | ||
|
|
||
| ## minishellとは | ||
| - minishellとは、bashをC言語で再実装する42Tokyoの課題です。 | ||
| - 基本的なシェル機能(コマンド実行、リダイレクト、パイプ、環境変数管理など)を低レイヤーのシステムコールを用いて構築します。 | ||
|
|
||
| ## 技術的要素(Tech Stack) | ||
| - C言語 | ||
| - システムコール(fork, execve, pipe, dup2, waitなど) | ||
| - メモリ管理(malloc, free) | ||
| - GitHub Flowによるチーム開発 | ||
| - バグ調査・デバッグ(gdb, valgrind) | ||
|
|
||
| ## 役割・貢献(My Contribution) | ||
| - **コマンド実行処理全般**を担当し、外部コマンドの呼び出しやエラー処理を実装 | ||
| - **パイプ・リダイレクト機能**を担当し、複数コマンドの連携を可能にする仕組みを構築 | ||
| - **ビルトインコマンド**はペアと分担し、`echo`, `pwd`, `exit`などを担当 | ||
| - **レビューとテスト**を通じて品質向上に貢献 | ||
|
|
||
| (※パーサー部分はペアが担当) | ||
|
|
||
| ## 協働・成果 | ||
| - GitHub Flowに基づき、課題ごとにブランチを作成 → PR → 相互レビュー → mainへマージという流れを徹底 | ||
| - 担当機能を明確化しつつ、必要に応じて相互サポートを実施 | ||
| - 開発期間中に発生したバグやメモリリークも協力して解消し、bashの基本動作を再現することに成功 | ||
|
|
||
| ## 学び・強み | ||
| - 低レイヤーの技術を用いたシステム実装経験 | ||
| - GitHub Flowによる実務に近いチーム開発経験 | ||
| - 課題を分担しつつ、協力して完成まで導いた問題解決力 | ||
|
|
||
| ## 実行方法 | ||
| ``` | ||
| git clone [email protected]:dayano74/minishell.git | ||
| cd minishell | ||
| make | ||
| ``` | ||
| makeすると、`minishell`という実行ファイルが生成されます。 | ||
| ``` | ||
| ./minishell | ||
| ``` | ||
| `minishell`を実行すると、プロンプトが表示されます。ここからコマンドを入力して実行できます。 | ||
| ``` | ||
| ./minishell | ||
| $ | ||
| $ echo "hello world" | ||
| hello world | ||
| $ touch file.txt | ||
| $ echo hi > file.txt | ||
| $ ls -l >> file.txt | cat file.txt | ||
| hi | ||
| $ cat file.txt | ||
| hi | ||
| total 112 | ||
| -rw-r--r-- 1 dayano dayano 1064 Aug 31 19:20 LICENSE | ||
| -rw-r--r-- 1 dayano dayano 4327 Aug 31 19:20 Makefile | ||
| -rw-r--r-- 1 dayano dayano 1962 Aug 31 19:29 README.md | ||
| -rwxr-xr-x 1 dayano dayano 170 Aug 31 19:20 copy_to_subject.sh | ||
| -rw-r--r-- 1 dayano dayano 3 Aug 31 19:30 file.txt | ||
| drwxr-xr-x 8 dayano dayano 4096 Aug 31 19:20 inc | ||
| drwxr-xr-x 3 dayano dayano 4096 Aug 31 19:20 lib | ||
| -rwxr-xr-x 1 dayano dayano 65448 Aug 31 19:29 minishell | ||
| drwxr-xr-x 8 dayano dayano 4096 Aug 31 19:29 obj | ||
| drwxr-xr-x 7 dayano dayano 4096 Aug 31 19:20 src | ||
| -rw-r--r-- 1 dayano dayano 2296 Aug 31 19:20 test.mk | ||
| drwxr-xr-x 6 dayano dayano 4096 Aug 31 19:20 tests | ||
| $ ls -la | wc -l | ||
| 18 | ||
| $ cat << EOF | ||
| > hi | ||
| > hello | ||
| > bye | ||
| > EOF | ||
| hi | ||
| hello | ||
| bye | ||
| $ exit | ||
| exit | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.