Differences between version 4 and previous revision of ShellBuiltinNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Thursday, August 16, 2007 8:45:43 pm | by BenStaz | Revert |
Older page: | version 3 | Last edited on Thursday, August 16, 2007 8:34:00 pm | by BenStaz | Revert |
@@ -17,6 +17,6 @@
If a command specified to the shell contains a slash ''/'', the shell will not execute a builtin command. Thus, while specifying ''echo'' causes a builtin command to be executed under shells that support the builtin echo command, specifying ''/bin/echo'' does not.
!Why can I not use ''sudo <shell_builtin>'' ?
-A shell builtin is not an executable file so sudo does not know about it.
+A shell builtin is not an executable file so sudo does not know about it. (obviously wont be found in any dirs in sudo's PATH)
.
You will need to use the command ''sudo -s'' to get a new shell with root privileges or alternatively you can do ''sudo bash -c "<shell_builtin>" ~[args~]''.