- 论坛徽章:
- 1
|
原帖由 davistar 于 2008-4-23 17:30 发表 ![]()
一样的
晕, 没看见那个 -x
- The shell provides several ways to manipulate the environment. On
- invocation, the shell scans its own environment and creates a parameter
- for each name found, automatically marking it for export to child pro-
- cesses. Executed commands inherit the environment. The export and
- declare -x commands allow parameters and functions to be added to and
- deleted from the environment. If the value of a parameter in the envi-
- ronment is modified, the new value becomes part of the environment,
- replacing the old. The environment inherited by any executed command
- consists of the shell's initial environment, whose values may be modi-
- fied in the shell, less any pairs removed by the unset command, plus
- any additions via the export and declare -x commands.
复制代码
[ 本帖最后由 寂寞烈火 于 2008-4-23 17:37 编辑 ] |
|