working of bash shell
can any one tell me how does bash help in executing the command echo and kill.how does the shell checks whether the command is builtin command or not. plz tell the complete procedure for both commands.
|
Without inspecting the bash source code it's hard to know but it probably has a list of its own built-ins and, when it is given a command to execute without a path (without a leading ~, ./ or /) it consults that list.
|
Quote:
The child process i.e. 'echo' or 'kill' whatever dies automatically when it completes its execution ! I see u are posting all your assignment questions one by one for us to solve ????????? |
|
Quote:
If these are homework questions (and they could well be) they are unusual ones or strangely re-cast. |
sir actually i m not posting all my assignment here. we were given an assignmment on working of shell. its our intrest to know extra in this field
|
then its best to understand the source.
|
Quote:
I thought as much. Your questions go beyond homework (they would be unfairly hard questions for homework when first learning bash). Nice that you are curious and want to fully understand :) Several of your questions relate (indirectly) to *n*x processes. Your curiosity and hunger for deeper understanding would be rewarded by learning about processes. Here are some links. Best to start with the first because it explains processes as seen from the shell that you are already learning about. |
Quote:
Of course, what will be the use of builtin commands if shell still had to fork a process for them ! They are there for the speed ! |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 05:17 PM. |