Execute a system command: Difference between revisions

Line 334:
 
'''Note:''' in these last cases, C-Shell and Korn Shell, these are "back ticks" rather than quotes or apostrophes. These "backticks" can also be used in Bourne compatible shells, though the '''$(...)''' form is preferred when discussing such things in e-mail, on USENET, or in other online forums (such as this wiki). Also the '''$(...)''' form of command substitution is nestable.
 
If one wishes to replace the shell process with some other command (chain into some command with no return) one can use the '''''exec''''' shell built-in command in any of the common UNIX shells (C-Shell, and all of the Bourne-compatible shells).
 
exec ls
Anonymous user