• Home
Name Date Size #Lines LOC

..--

.mkshrcD07-Sep-2024767 1512

BUILD.gnD07-Sep-20247.1 KiB263252

Build.shD07-Sep-202472.1 KiB2,8812,362

COPYRIGHTD07-Sep-20241.2 KiB3232

FAQ2HTML.shD07-Sep-20243.7 KiB137103

OAT.xmlD07-Sep-20245.7 KiB9047

README.OpenSourceD07-Sep-2024442 1211

README_zh.mdD07-Sep-20241.5 KiB4530

TaC-mksh.txtD07-Sep-202411.3 KiB290239

bundle.jsonD07-Sep-2024933 4140

check.plD07-Sep-202435.8 KiB1,3641,072

check.tD07-Sep-2024288.3 KiB13,92913,857

dot.mkshrcD07-Sep-202418 KiB676627

edit.cD07-Sep-2024115.3 KiB5,7514,619

emacsfn.hD07-Sep-20244.6 KiB145121

eval.cD07-Sep-202447.3 KiB2,1121,590

exec.cD07-Sep-202443.5 KiB1,8731,354

expr.cD07-Sep-202426.3 KiB1,2361,006

exprtok.hD07-Sep-20243.8 KiB12488

funcs.cD07-Sep-202472.2 KiB3,4772,760

histrap.cD07-Sep-202435.5 KiB1,6321,183

jehanne.cD07-Sep-20241.3 KiB3711

jobs.cD07-Sep-202445.4 KiB1,9711,469

lalloc.cD07-Sep-20244.7 KiB194131

lex.cD07-Sep-202440.8 KiB1,8211,402

lksh.1D07-Sep-20249.1 KiB362361

main.cD07-Sep-202449.3 KiB2,1681,580

mirhash.hD07-Sep-20248.3 KiB227121

misc.cD07-Sep-202457.7 KiB2,6401,918

mksh.1D07-Sep-2024172.8 KiB7,1207,119

mksh.faqD07-Sep-202432.6 KiB653614

mksh.gniD07-Sep-20241.6 KiB3028

mksh.icoD07-Sep-202413.8 KiB

os2.cD07-Sep-202412.8 KiB613424

rlimits.genD07-Sep-20243.8 KiB185183

rlimits.optD07-Sep-20242.7 KiB11484

sh.hD07-Sep-202489.7 KiB2,9032,313

sh_flags.genD07-Sep-20243.8 KiB157155

sh_flags.optD07-Sep-20244.7 KiB195151

shf.cD07-Sep-202430.8 KiB1,323986

signames.incD07-Sep-2024546 3231

strlcpy.cD07-Sep-20241.6 KiB5419

syn.cD07-Sep-202425.9 KiB1,185929

tree.cD07-Sep-202424.5 KiB1,1831,009

ulimit.cD07-Sep-20248.2 KiB361279

ulimits.optD07-Sep-20241.5 KiB4738

var.cD07-Sep-202449.9 KiB2,2451,702

var_spec.hD07-Sep-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