Skip to content

Montser - #3

Closed
Montaser-asad wants to merge 2 commits into
mainfrom
montser
Closed

Montser#3
Montaser-asad wants to merge 2 commits into
mainfrom
montser

Conversation

@Montaser-asad

Copy link
Copy Markdown
Collaborator

can you check this update I made on the readme.md and added a tests.md file

Copilot AI review requested due to automatic review settings June 4, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR primarily improves project documentation by expanding the README and adding a new tests.md checklist of minishell edge cases and expected behaviors; it also includes a header change and adds an empty file_test file.

Changes:

  • Replaced the minimal README with a fuller project description, feature list, build/run instructions, and references.
  • Added tests.md containing a structured list of edge-case/manual test scenarios (syntax, expansion, pipes, redirections, signals, etc.).
  • Introduced a new t_pid typedef in inc/minishell.h and added an empty file_test file at repo root.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
README.md Expanded documentation: overview, features, usage, resources, and authors.
tests.md Added a manual test matrix for minishell edge cases and expected outputs/status codes.
inc/minishell.h Added a new t_pid type (currently an empty struct).
file_test Added an empty file named file_test at repository root.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests.md
Comment on lines +69 to +73
| [✅] `cat \| cat \| cat \| echo` | ` ` (empty line) | 0 | ✅ |
| [✅] `cat Makefile \| base64 \| xxd -p \| xxd -r -p \| base64 --decode` | Makefile contents | 0 | ✅ |
| [✅] `cat Makefile \| cat -e \| cat -e \| ... (10x)` | Makefile with `$$$$$$$$$$` appended to each line | 0 | ✅ |
| [✅] `yes yes \| head -n 10000000 \| wc` | `10000000 10000000 40000000` | 0 | ✅ |
| [X] `echo \| echo \| echo \| ... (13x)` then `./minishell` | ` ` | 0 | ✅ |
Comment thread tests.md
| [O] `.` | `minishell> ` | … | ✅ |
| [✅] `/` | `minishell: /: Is a directory` | 126 | ✅ |
| [X] `file/` | `file/: Not a directory` | 126 | ✅ |
| [O] `touch file_test` + `chmod +x file_test` + `./file_test` | Must not leak or leave open fds | … | ✅ |
Comment thread inc/minishell.h
Comment on lines +59 to +62
typedef struct s_pid
{

} t_pid;
@ahmad-nashwan
ahmad-nashwan self-requested a review June 4, 2026 21:59

@ahmad-nashwan ahmad-nashwan left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you for your effort. Here are my notes:

  1. Let's keep each branch with a separate responsibility, and keep the main branch for important or final changes only.
  2. We need to solve the PID array issue.
  3. There's an extra file in the repository
  4. Lets keep a good commit message history please ;)

Comment thread inc/minishell.h
typedef struct s_pid
{

} t_pid;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We should define what this struct is and what it includes before merging it. Or decide if we need it at all

Comment thread README.md
This is the beginning of this journey !
https://youtu.be/PIb2aShU_H4 No newline at end of file
# minishell

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We can take our time with the README.md, this works as a placeholder for now, but it should be complete before merging it to the main branch.

Comment thread tests.md
@@ -0,0 +1,177 @@
# Minishell Edge Cases

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Having a tests file is a good idea, but i don't think it should be merged to the main branch.

@Montaser-asad
Montaser-asad deleted the montser branch June 5, 2026 14:19
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.

3 participants