• Home
Name Date Size #Lines LOC

..--

.mkshrcD12-May-2024767 1512

BUILD.gnD12-May-20247.1 KiB263252

Build.shD12-May-202472.1 KiB2,8812,362

COPYRIGHTD12-May-20241.2 KiB3232

FAQ2HTML.shD12-May-20243.7 KiB137103

OAT.xmlD12-May-20245.7 KiB9047

README.OpenSourceD12-May-2024442 1211

README_zh.mdD12-May-20241.5 KiB4530

TaC-mksh.txtD12-May-202411.3 KiB290239

bundle.jsonD12-May-2024831 3736

check.plD12-May-202435.8 KiB1,3641,072

check.tD12-May-2024288.3 KiB13,92913,857

dot.mkshrcD12-May-202418 KiB676627

edit.cD12-May-2024115.3 KiB5,7514,619

emacsfn.hD12-May-20244.6 KiB145121

eval.cD12-May-202447.3 KiB2,1121,590

exec.cD12-May-202443.5 KiB1,8731,354

expr.cD12-May-202426.3 KiB1,2361,006

exprtok.hD12-May-20243.8 KiB12488

funcs.cD12-May-202472.2 KiB3,4772,760

histrap.cD12-May-202435.5 KiB1,6321,183

jehanne.cD12-May-20241.3 KiB3711

jobs.cD12-May-202445.4 KiB1,9711,469

lalloc.cD12-May-20244.7 KiB194131

lex.cD12-May-202440.8 KiB1,8211,402

lksh.1D12-May-20249.1 KiB362361

main.cD12-May-202449.3 KiB2,1681,580

mirhash.hD12-May-20248.3 KiB227121

misc.cD12-May-202457.7 KiB2,6401,918

mksh.1D12-May-2024172.8 KiB7,1207,119

mksh.faqD12-May-202432.6 KiB653614

mksh.gniD12-May-20241.6 KiB3028

mksh.icoD12-May-202413.8 KiB

os2.cD12-May-202412.8 KiB613424

rlimits.genD12-May-20243.8 KiB185183

rlimits.optD12-May-20242.7 KiB11484

sh.hD12-May-202489.7 KiB2,9032,313

sh_flags.genD12-May-20243.8 KiB157155

sh_flags.optD12-May-20244.7 KiB195151

shf.cD12-May-202430.8 KiB1,323986

signames.incD12-May-2024546 3231

strlcpy.cD12-May-20241.6 KiB5419

syn.cD12-May-202425.9 KiB1,185929

tree.cD12-May-202424.5 KiB1,1831,009

ulimit.cD12-May-20248.2 KiB361279

ulimits.optD12-May-20241.5 KiB4738

var.cD12-May-202449.9 KiB2,2451,702

var_spec.hD12-May-20241.9 KiB8152

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