Horje
A subshell can change variables it inherited from the parent, but the changes made by the child don't affect the parent. This is demonstrated in the example: Code Example
A subshell can change variables it inherited from the parent, but the changes made by the child don't affect the parent. This is demonstrated in the example:
franky ~> full_name="Franky M. Singh"

franky ~> bash

franky ~> echo $full_name


franky ~> exit

franky ~> export full_name

franky ~> bash

franky ~> echo $full_name
Franky M. Singh

franky ~> export full_name="Charles the Great"

franky ~> echo $full_name
Charles the Great

franky ~> exit

franky ~> echo $full_name
Franky M. Singh

franky ~>
Source: tldp.org




Shell

Related
rename tool numeric linux Code Example rename tool numeric linux Code Example
How do I force "git pull" to overwrite local files? Code Example How do I force "git pull" to overwrite local files? Code Example
convert dos to unix with tr Code Example convert dos to unix with tr Code Example
kubctl listnamespaces Code Example kubctl listnamespaces Code Example
no network in cent os Code Example no network in cent os Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9