kglebows / 42_minishell

0 stars 0 forks source link

exit #10

Open kglebows opened 10 months ago

kglebows commented 10 months ago

Exit without arguments - writes 'exit' exits with last signal code Exit with 1 argument - numeric - writes 'exit' and will exit with this number as exit code Exit with 1 argument - non numeric will write 'exit', write '[exit](bash: exit: : numeric argument required) and exit with code 255. Exit with more than one argument - writes 'exit' and writes 'bash: exit: too many arguments' and DO NOT EXITS Exit inside of a pipe = writes error messages about numeric arg nad too many arg but not 'exit' and DO NOT EXITS