Bash Shell and process

Source: Internet
Author: User
Tags builtin

1 exec Builtin

Do not create a child shell, start a new script on the original process, but it will clean up the environment of the old shell, so it does not inherit from the original shell, execute the new script in a clean environment. Exit the current shell after execution is complete.

2 Source Builtin

Do not create a child shell and execute the source script on the original process. The execution environment of the script is the same as that of the original shell.

3 bash filename or./filename

Create a child shell.

Child shells can inherit environment variables, current working directory, open file identifiers, standard input, standard output, and standard error output from the parent shell.

Variables other than environment variables are not inherited.

4 $ (XXX) and ' xxx ', command replacement

Execute in the child shell.

Bash Shell and process

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.