Name Date Size

..25-Oct-20244 KiB

.gitee/H25-Oct-20244 KiB

.mkshrcH A D25-Oct-2024767

BUILD.gnH A D25-Oct-20247.1 KiB

Build.shH A D25-Oct-202472.1 KiB

bundle.jsonH A D25-Oct-2024957

check.plH A D25-Oct-202435.8 KiB

check.tH A D25-Oct-2024288.3 KiB

COPYRIGHTH A D25-Oct-20243.9 KiB

dot.mkshrcH A D25-Oct-202418 KiB

edit.cH A D25-Oct-2024115.3 KiB

emacsfn.hH A D25-Oct-20244.6 KiB

eval.cH A D25-Oct-202447.3 KiB

exec.cH A D25-Oct-202443.5 KiB

expr.cH A D25-Oct-202426.3 KiB

exprtok.hH A D25-Oct-20243.8 KiB

FAQ2HTML.shH A D25-Oct-20243.7 KiB

funcs.cH A D25-Oct-202472.2 KiB

histrap.cH A D25-Oct-202435.5 KiB

jehanne.cH A D25-Oct-20241.3 KiB

jobs.cH A D25-Oct-202445.4 KiB

lalloc.cH A D25-Oct-20244.7 KiB

lex.cH A D25-Oct-202440.8 KiB

lksh.1H A D25-Oct-20249.1 KiB

main.cH A D25-Oct-202449.4 KiB

mirhash.hH A D25-Oct-20248.3 KiB

misc.cH A D25-Oct-202457.7 KiB

mksh.1H A D25-Oct-2024172.8 KiB

mksh.faqH A D25-Oct-202432.6 KiB

mksh.gniH A D25-Oct-20241.6 KiB

mksh.icoH A D25-Oct-202413.8 KiB

OAT.xmlH A D25-Oct-20245.7 KiB

os2.cH A D25-Oct-202412.8 KiB

README.OpenSourceH A D25-Oct-2024442

README_zh.mdH A D25-Oct-20241.5 KiB

rlimits.genH A D25-Oct-20243.8 KiB

rlimits.optH A D25-Oct-20242.7 KiB

sh.hH A D25-Oct-202489.7 KiB

sh_flags.genH A D25-Oct-20243.8 KiB

sh_flags.optH A D25-Oct-20244.7 KiB

shf.cH A D25-Oct-202430.8 KiB

signames.incH A D25-Oct-2024546

strlcpy.cH A D25-Oct-20241.6 KiB

syn.cH A D25-Oct-202425.9 KiB

TaC-mksh.txtH A D25-Oct-202411.3 KiB

tree.cH A D25-Oct-202424.5 KiB

ulimit.cH A D25-Oct-20248.2 KiB

ulimits.optH A D25-Oct-20241.5 KiB

var.cH A D25-Oct-202449.9 KiB

var_spec.hH A D25-Oct-20241.9 KiB

README.OpenSource

1[
2    {
3        "Name"                  : "mksh",
4        "License"               : "MirOS License",
5        "License File"          : "COPYRIGHT",
6        "Version Number"        : "R59c",
7        "Owner"                 : "maguangyao@huawei.com",
8        "Upstream URL"          : "https://www.mirbsd.org/mksh.htm",
9        "Description"           : "a secure operating system from the BSD family for 32-bit i386 and sparc systems"
10    }
11]
12

README_zh.md

1# mksh	
2
3mksh简而言之就是MirBSD Korn Shell。它是一个命令解释器,用于shell命令交互和shell脚本语言。它是Shell语言的超集(superset),同时也兼容原本的Korn shell。
4
5在本文档的末尾已为您附上官方链接。 
6
7## 目录结构
8
9```
10README_zh.md                中文说明
11build.sh                    编译脚本
12main.c                      程序入口
13check.pl                    测试用例
14README.OpenSource           开源说明
15```
16
17## OpenHarmony中如何使用mksh
18
19### 1.如何使用mksh
20
21需要执行`./bin/mksh`进入,然后才是mksh的shell。
22
23### 2.BUILD.gn添加引用
24
25```
26public_deps += ["//third_party/mksh"]
27```
28
29### 3.调用mksh使用示例
30
31```
32OHOS # ./bin/mksh                                                                                                                                                                                                                      
33OHOS:/$                                                                                                                             
34OHOS:/$ echo $PATH                                                                                                                  
35/usr/local/bin:/bin:/usr/bin                                                                                                        
36OHOS:/$    
37```
38
39## mksh使用文档
40
41代码仓库 https://github.com/MirBSD/mksh
42
43官方文档 http://www.mirbsd.org/mksh.htm
44
45mksh FAQ http://www.mirbsd.org/mksh-faq.htm