Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayZhu1024 committed Aug 20, 2024
1 parent 80943bd commit 7a4c0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LinuxBasics/12.shell脚本编程.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ $RANDOM   取值范围:0-32767

```bash
( list ) 会开启子shell,并且list中变量赋值及内部命令执行后,将不再影响后续的环境,但是可以读取到外部变量的值
{ list; } 不会启子shell, 在当前shell中运行,会影响当前shell环境
{ list; } 不会启子shell, 在当前shell中运行,会影响当前shell环境,注意格式:{ cmd; } 两边一定要留有空格,命令后面一定要有; 否则报错
(umask 066;touch f1.txt)
( cd /data;ls )
```
Expand Down

0 comments on commit 7a4c0cb

Please sign in to comment.