resolutions qq pbm dans unitests et dans tests
This commit is contained in:
62
error.md
62
error.md
@@ -1,39 +1,43 @@
|
||||
1. redirection & quotes expansion
|
||||
|
||||
```
|
||||
bash$ echo "hello" > "file"
|
||||
bash$ ls
|
||||
file
|
||||
bash$
|
||||
```
|
||||
**summary**
|
||||
|
||||
```
|
||||
minishell$ echo "hello" > "file"
|
||||
minishell$ ls
|
||||
'"file"'
|
||||
minishell$
|
||||
```
|
||||
2. redirection & open
|
||||
# exit status
|
||||
6 / 6
|
||||
# redirections
|
||||
50 / 50
|
||||
# builtins env
|
||||
! 37 / 47
|
||||
# heredocs
|
||||
1 / 1
|
||||
# expansions
|
||||
248 / 248
|
||||
# expansions var
|
||||
! 110 / 120
|
||||
# pipes
|
||||
40 / 40
|
||||
# builtins
|
||||
40 / 40
|
||||
# else
|
||||
29 / 29
|
||||
# total : 276 / 366
|
||||
|
||||
`prompt$ > newfile`
|
||||
create file `newfile` in bash, but not in minishell
|
||||
|
||||
3. redirection & open
|
||||
|
||||
ok `prompt$ echo "hello" > $not_a_variable`
|
||||
ok does'nt create a file in bash, but does in minishell
|
||||
**details**
|
||||
|
||||
4. redirection & variables expansion
|
||||
# --------------------------------
|
||||
# builtins env
|
||||
|
||||
```
|
||||
export NEWVAR="newfile"
|
||||
echo hello > $NEWVAR
|
||||
```
|
||||
create file "newfile" in bash, but a file named "'$NEWVAR'" in minishell
|
||||
1. `export` sans argument agit differemment
|
||||
from man : "if no names are supplied [...] a list of exported names is displayed."
|
||||
2. `export ""` ! segfault !
|
||||
3. `export/unset PATH` agit differemment
|
||||
|
||||
5. redireciton & pipes
|
||||
|
||||
`ls | < not_a_file cat`
|
||||
gives an error about "not_a_file" and stop in bash, but in minishell it continues forever
|
||||
(`< not_a_file cat` works fine in both bash and minishell)
|
||||
# --------------------------------
|
||||
# expansions var
|
||||
|
||||
1. `echo $"USER"` quotes inside $
|
||||
2. `$number` doesn't expand in minishell
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user