I have been asked to find a shell command that doesn’t make any system call. I have searched a lot and finally ended up here asking that is there any command in linux shell or unix that doesn’t call a system call at the back end.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Think of what a shell is, how does it run the commands.
The shell is an interpreter. Roughly speaking there is a single interpreter loop
Now think, which command just updates the internal structures of the shell process and which command needs to call the operating system to perform its function.