Alicia-bites / minishell

This project is about creating a simple shell.
1 stars 0 forks source link

// #51

Closed Alicia-bites closed 2 years ago

Alicia-bites commented 2 years ago

Any command starting with / should be tokenized as a directory.

Exemples for BASH:

amarchan@e1r5p22:~/Documents/test_env/env_bash$ // cat
bash: //: Is a directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ //
bash: //: Is a directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ //fnlsjfn.sjlf
bash: //fnlsjfn.sjlf: No such file or directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ // echo alicia
bash: //: Is a directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ //nsjkhksk echo alicia
bash: //nsjkhksk: No such file or directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ //nsjkhksk | echo alicia
alicia
bash: //nsjkhksk: No such file or directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ /nsjkhksk | echo alicia
alicia
bash: /nsjkhksk: No such file or directory
amarchan@e1r5p22:~/Documents/test_env/env_bash$ ///nsjkhksk | echo alicia
alicia
bash: ///nsjkhksk: No such file or directory