Giter Site home page Giter Site logo

c-bertran / 42-exam-shell Goto Github PK

View Code? Open in Web Editor NEW
50.0 1.0 3.0 12.91 MB

Examshell will allow you to practice to be perfectly ready for the 42 exams

License: GNU General Public License v3.0

C 22.34% Shell 24.31% JavaScript 3.40% HTML 0.18% C++ 9.49% TypeScript 40.29%
examshell exam exam-02 exam-03 exam-04 exam-05 exam-06 42 42-school examrank

42-exam-shell's People

Contributors

c-bertran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

b-ki torm0 rodsmade

42-exam-shell's Issues

Expected outcome of microshell's example differs from what happens in bash

Describe the bug
In microshell's subject (/srcs/exams/04/microshell/subjects/fr_FR), the examples suggest that the second occurrence of echo should be interpreted as a command, hence there should be a second line of output.

$>./microshell /usr/bin/echo WOOT "; microshell ;" "; ;" ";" /usr/bin/echo "is hell of fun"
WOOT ; microshell ; ; ;
is hell of fun

Expected behavior
Semicolons shall be interpreted literally inside double quotes, as per the documentation.

The expected subject text should be:

$>./microshell /usr/bin/echo WOOT "; microshell ;" "; ;" ";" /usr/bin/echo "is hell of fun"
WOOT ; microshell ; ; ; ; /usr/bin/echo is hell of fun

as is bash's (see screenshot).

Screenshots
image

Additional context
Some other examples give misleading guidance and hence should be revised.

ERR_UNHANDLED_REJECTION

═══════════════ ⚠ Error ⚠ ══════════════
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "127".] {
code: 'ERR_UNHANDLED_REJECTION'
}
══════════════════════════════════════════

[Error 121] Under MacOS, automatic installation is unavailable.

[Error 121] Under MacOS, automatic installation is unavailable. Please install git, clang and valgrind manually

I have a High Sierra operating system. I have already installed git, clang and valgrind manually by homebrew but still can not make the installer work.

Bug under MacOS with bash script

Describe the bug
On MacOS, some bash scripts have apparently misunderstood redirects
Checks are in progress

Desktop (please complete the following information):

  • OS: MacOS

Exam Checkmate (02-part4)

Describe the bug
The subject of the Exam checkmate (02-part4) seems incorrect.

Expected behavior
The output of the third test should be Fail$ since the king is not in checkmate in this position. Indeed, he is not aligned with the only rook on the board.

Additional context
These lines seem problematic.

EXAM05 bug

Describe the bug
Just launch an empty grademe and got 33/100

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]: macos

Additional context
Add any other context about the problem here.

Capture d’écran 2022-02-11 à 18 21 54

Dependencies

I believe it's a good idea to add to the README a Dependencies section

The Dependencies section will let any reader know which are the main dependencies that the project uses.
This way the reader will know if he needs to install any dependencies beforehand.
Although this could be arguable since Linux would detect this automatically and prompt the user to install them.

On the other hand I believe this information is useful and it's a good idea to have it on the README
and maybe explain why they are needed.

  • node > version
  • valgrind > version
  • clang > version
  • git > version

What do you think?

Fedora & MacOs grademe Error

After installing the project in my computer and running the command grademe, inside the examshell cli the program returned an Error
Error: Command failed: bash make.bash render

Download the program at Releases 0.3.6
Change directory too the downloaded file location.
chmod +x examshell && ./examshell
When the command is executed, the Menu prompts there is a new version available for download
It says:
? Do you want to skip installation step (e.g. a false negative) ? › (y/N)
I decided to choose y (yes)
Then I choose English
Then Infinite
... Exam06
I create and commit the repo on the folder ~render/mini_serv/mini_serv.c
then I prompt grademe and the error is returned.

image

Desktop (please complete the following information):

  • OS: Fedora GNU/LINUX
  • Version 37

Exam 4 Trace failed

Describe the bug
I think Exam 4 always fail because code in here can't compile

Expected behavior
Exam ok or another error.

Screenshots

=== TRACE ===
microshell.c:39:32: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
        if (x < 2 || x > 2 || argv[1] && strcmp(argv[1], "-") == 0)
                           ~~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
microshell.c:39:32: note: place parentheses around the '&&' expression to silence this warning
        if (x < 2 || x > 2 || argv[1] && strcmp(argv[1], "-") == 0)
                                      ^
                              (                                   )
1 error generated.

Additional context
None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.