qq modifs pour pull
This commit is contained in:
39
error.md
39
error.md
@@ -1,16 +1,39 @@
|
||||
1. redirection et quotes expansion
|
||||
1. redirection & quotes expansion
|
||||
|
||||
```
|
||||
bash> echo "hello" > "file"
|
||||
bash> ls
|
||||
bash$ echo "hello" > "file"
|
||||
bash$ ls
|
||||
file
|
||||
bash>
|
||||
bash$
|
||||
```
|
||||
|
||||
```
|
||||
minishell> echo "hello" > "file"
|
||||
minishell> ls
|
||||
minishell$ echo "hello" > "file"
|
||||
minishell$ ls
|
||||
'"file"'
|
||||
minishell>
|
||||
minishell$
|
||||
```
|
||||
2.
|
||||
2. redirection & open
|
||||
|
||||
`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
|
||||
|
||||
4. redirection & variables expansion
|
||||
|
||||
```
|
||||
export NEWVAR="newfile"
|
||||
echo hello > $NEWVAR
|
||||
```
|
||||
create file "newfile" in bash, but a file named "'$NEWVAR'" in minishell
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user