h4dh4d1y4551n3 / minishell

Beautiful as a shell, dreadful as hell.
0 stars 0 forks source link

Aggregate error handling and reporting logic into one central interface #14

Open h4dh4d1y4551n3 opened 2 months ago

h4dh4d1y4551n3 commented 2 months ago

Aggregate error handling and logic reporting into one central interface based on Exit Status and Errors section in the specification excerpt on issue #11.

h4dh4d1y4551n3 commented 2 months ago

Bash can generate a variety of output errors depending on what goes wrong during the execution of a script or command. Here are some of the common forms of output errors we might encounter:

  1. Syntax Errors
    • Description : These occur when there is a mistake in the command syntax.
  1. Command Not Found Errors
    • Description : Bash cannot locate the command being executed.
  1. Permission Denied Errors
    • Description : The user does not have the appropriate permissions to execute a file or command.
  1. File or Directory Not Found
    • Description : Bash cannot locate a specified file or directory.
  1. File or Directory Not Found
    • Description : Errors involving invalid file descriptors.
  1. Segmentation Fault
    • Description : An underlying binary or script crashes unexpectedly.
  1. Too Many Arguments
    • Description : Occur when too many arguments are passed to a command or function.
  1. I/O Redirection Errors
    • Description : Problems with input/output redirection.
  1. Out of Memory
    • Description : Bash or a command consumes more memory than is available.
  1. Process Limits Exceeded
    • Description : Reaching system-imposed limits on processes.
  1. Pipe Errors
    • Description : Errors in piping the output of one command to another.