Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 958 Bytes

Minishell Test cases.md

File metadata and controls

46 lines (37 loc) · 958 Bytes

Built-ins

  • echo
  • pwd
  • cd
  • export
  • unset
  • env
  • exit

Signals

  • ctrl + \
  • ctrl + d
  • ctrl + c

Redirections

  • >
  • >>
  • <
  • <<
  • Mixture

Pipes

  • Regular single pipe
  • Pipe to Pipe
  • Pipe mixed with Redirections

Case specific

  • Tons of memory leak found when inputting an unknown command without args.
  • When replace_env fails to work it seems there is a memory leak
  • After a blocking command ctrl + \ = segfault ctrl + C = segfault
  • After removing $PATH and executing relative path commands a memory leak is caused
  • TO CHECK Set the $PATH to a multiple directory value (directory1:directory2) and ensure that directories are checked in order from left to right.
  • Operation not permitted error?
  • ls | > test.txt Doesn't work due to syntax error
  • Various leaks found upon exiting
  • fix cd segfault

Missing

  • implement $? + $?
  • implement cd -