gysiang / minishell

0 stars 1 forks source link

echo hi > no_permission #247

Closed gysiang closed 4 months ago

gysiang commented 4 months ago

minishell$ echo hi > no_permission.txt minishell: no_permission.txt: Permission denied ==1771051== ==1771051== FILE DESCRIPTORS: 3 open (3 std) at exit. ==1771051== ==1771051== HEAP SUMMARY: ==1771051== in use at exit: 204,215 bytes in 222 blocks ==1771051== total heap usage: 514 allocs, 292 frees, 230,300 bytes allocated ==1771051== ==1771051== LEAK SUMMARY: ==1771051== definitely lost: 0 bytes in 0 blocks ==1771051== indirectly lost: 0 bytes in 0 blocks ==1771051== possibly lost: 0 bytes in 0 blocks ==1771051== still reachable: 0 bytes in 0 blocks ==1771051== suppressed: 204,215 bytes in 222 blocks ==1771051== ==1771051== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) --1771051-- --1771051-- used_suppression: 63 leak readline ./readline.supp:2 suppressed: 204,215 bytes in 222 blocks ==1771051== ==1771051== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

gysiang commented 4 months ago

minishell$ ls >> input.txt > no_permission.txt minishell: no_permission.txt: Permission denied ==1777969== ==1777969== FILE DESCRIPTORS: 3 open (3 std) at exit. ==1777969== ==1777969== HEAP SUMMARY: ==1777969== in use at exit: 204,223 bytes in 222 blocks ==1777969== total heap usage: 576 allocs, 354 frees, 231,455 bytes allocated ==1777969== ==1777969== LEAK SUMMARY: ==1777969== definitely lost: 0 bytes in 0 blocks ==1777969== indirectly lost: 0 bytes in 0 blocks ==1777969== possibly lost: 0 bytes in 0 blocks ==1777969== still reachable: 0 bytes in 0 blocks ==1777969== suppressed: 204,223 bytes in 222 blocks ==1777969== ==1777969== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) --1777969-- --1777969-- used_suppression: 63 leak readline ./readline.supp:2 suppressed: 204,223 bytes in 222 blocks ==1777969== ==1777969== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)