unix - What is "exit" in Solaris? -
unix - What is "exit" in Solaris? -
this feels newbie question, i've been working solaris years, , stumped this.
does know happens when type exit on solaris command line?
i'm using solaris 10, , i'd know happens when run "exit".
i assumed command, can't find it:
$ uname -a sunos base of operations 5.10 generic_150400-05 sun4v sparc sun4v $ exit no exit in /usr/bin . /usr/local/bin /usr/local/bin /usr/ucb /usr/x/bin /sbin /usr/sbin /usr/local/sbin /usr/sbin /usr/sbin /usr/local/bin $ sudo find / -name exit $
thanks, warwick.
exit
shell built-in. think how shell typically works without built-ins. executes file in command path forking new process. exit terminates current process. if there external exit
program, calling exit exit
program.
therefore, exit
1 of built-in commands bash (and other shells) knows how interpret (along cd
). exit
within process itself.
excellent explanation on wikipedia: http://en.wikipedia.org/wiki/shell_builtin
unix solaris exit built-in builtins
Comments
Post a Comment