Giter Club home page Giter Club logo

42sh's People

Contributors

aschoenh avatar benjyskan avatar mporzier avatar pscott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

giabach99

42sh's Issues

echo "\$PWD"

i think when a character is escaped, i don't change the LEN well

Pwd bug when cd

cd / ; cd bin , when you use pwd, it shows //bin instead of /bin

Bug with cmd + k

When we hit cmd + k to clear the terminal, the display is bugged and comes again to the place the line was before the cmd + k

Norm error

Remember to remove the macro "ERROR_MEM", because it's not compatible with the 42 norm

42ShellTester / redirections/inputs/001_close_stdin

21sh/redirections/inputs/001-close-stdin (FAILED)

Description:
The purpose of this test is to check that using the closing operator &- within the STDIN redirection < results in a closed standard input, so that read(2) results in a read error.

Before test:
01: rm -f ./read_on_stdin
02: gcc -Wall -Werror -Wextra “/Users/aschoenh/42ShellTester/support/read-on-stdin/main.c” -o ./read_on_stdin

STDIN:
01: ./read_on_stdin <&-

STDOUT:
SUCCESS might be_empty
(no output)

STDERR:
FAILURE expected_to match_regex STDIN READ ERROR$
(no output)

MISC:
FAILURE expected_to exit_with_status 1

link : https://github.com/we-sh/42ShellTester/blob/master/spec/21sh/redirections/inputs/001-close-stdin

42ShellTester / Redirections whit no_exist_file

21sh/redirections/inputs/005-no-such-file (FAILED)

Description:
The purpose of this test is to check that using a wrong path within the STDIN redirection < results in an error.

Before test:
01: rm -f “./no_such_file”

STDIN:
01: ./read_on_stdin <no_such_file

STDOUT:
SUCCESS expected_to be_empty
(no output)

STDERR:
SUCCESS expected_to_not be_empty
SUCCESS might match_regex [Nn]o such file or directory
01: 42sh: no_such_file: No such file or directory

MISC:
FAILURE expected_to_not exit_with_status 0

link : https://github.com/we-sh/42ShellTester/blob/master/spec/21sh/redirections/inputs/005-no-such-file

Env -i to do

Env -i is not done ; just a bit tricky because it influences the execution

Error brackets

When the brackets are not well formatted, the shell freezes and it's impossible to quit

Redirection error

When typed cat < doesnotexist, the shell is not supposed to launch cat, but it does

42ShellTester / semicolon

21sh/separators/semicolon/003-parse-error-empty-inline-command (FAILED)

Description:
The purpose of this test is to check that using the simicolon separator ; with empty commands results in error.

STDIN:
01: ./write_on_stdout TOKEN201906031740 ; ; ./exit_with_status 42

STDOUT:
SUCCESS expected_to be_empty
(no output)

STDERR:
SUCCESS expected_to_not be_empty
SUCCESS might match_regex ([Ss]yntax|[Pp]arse) error
01: 42sh: syntax error near unexpected token `;'

MISC:
SUCCESS expected_to_not exit_with_status 42
FAILURE expected_to_not exit_with_status 0

link : https://github.com/we-sh/42ShellTester/blob/master/spec/21sh/separators/semicolon/003-parse-error-empty-inline-command

Introduction to our shell when executable is launched

To help the user to use our shell, it would be interesting to show the termcaps possible actions and their shortcuts when the shell is launched, like a kind of header before printing the terminal in the beginning

Bug cd

cd doesnotexist 2 > test
infinite loop, shell is frozen and impossible to use

History error

When you go up in the history, execute an unknown command, you stay in the line which you modified instead of having a new line at the bottom of the history

need token for : ${}

L’expansion simple des paramètres selon la syntaxe ${} (pas de format supplémentaire requis). from 42sh's subject.

Leaks in create_argv

Don't forget to remove the leaks in create_argv 💯 valgrind always says that argv is leaking

tab display

bash behavior : on empty line: press tab twice to ask for display
our behavior: press tab once to ask for display.

@aschoenh should we change ?

Termcaps error

When an unknown key is pressed (for example, a combination of keys who isn't supposed to do anything in 21sh, or a key like F16), the keycode is printed into the terminal instead of doing nothing

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.