Alicia-bites / minishell

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

>> NOT WORKING #35

Closed Alicia-bites closed 2 years ago

Alicia-bites commented 2 years ago

BASH

amarchan@e1r4p3:~/Documents/test_env$ echo one > file1
amarchan@e1r4p3:~/Documents/test_env$ echo two > file2
amarchan@e1r4p3:~/Documents/test_env$ echo ONEBIS >> file1 > file2 > file1
amarchan@e1r4p3:~/Documents/test_env$ cat file1
ONEBIS
amarchan@e1r4p3:~/Documents/test_env$ cat file2

MINISHELL

$: echo one > file1
$: echo two > file2
$: echo ONEBIS >> file1 > file2 > file1
Error: Permission denied: file1
$: cat file1
one
$: cat file2
two

ONEBIS should be in file1 and NOTHING should be in file2.