mirror of
https://github.com/openharmony/third_party_mksh.git
synced 2026-07-01 12:24:52 -04:00
@@ -27,6 +27,7 @@
|
||||
|
||||
#define EXTERN
|
||||
#include "sh.h"
|
||||
#include "tab_cmd.h"
|
||||
|
||||
#if HAVE_LANGINFO_CODESET
|
||||
#include <langinfo.h>
|
||||
@@ -85,7 +86,9 @@ static const char *initcoms[] = {
|
||||
"nameref=\\\\builtin typeset -n",
|
||||
"nohup=nohup ",
|
||||
"r=\\\\builtin fc -e -",
|
||||
#ifndef MKSH_TERMINAL_EXT
|
||||
#ifdef MKSH_TERMINAL_EXT
|
||||
TAB_CMD_LIST,
|
||||
#else
|
||||
"login=\\\\builtin exec login",
|
||||
#endif
|
||||
NULL,
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
#ifndef MKSH_TAB_CMD_H
|
||||
#define MKSH_TAB_CMD_H
|
||||
|
||||
#define TAB_CMD_LIST \
|
||||
"awk=awk",\
|
||||
"base64=base64",\
|
||||
"basename=basename",\
|
||||
"cat=cat",\
|
||||
"chgrp=chgrp",\
|
||||
"chmod=chmod",\
|
||||
"chown=chown",\
|
||||
"cksum=cksum",\
|
||||
"cmp=cmp",\
|
||||
"comm=comm",\
|
||||
"count=count",\
|
||||
"cp=cp",\
|
||||
"cpio=cpio",\
|
||||
"crc32=crc32",\
|
||||
"cut=cut",\
|
||||
"dd=dd",\
|
||||
"diff=diff",\
|
||||
"dirname=dirname",\
|
||||
"dos2unix=dos2unix",\
|
||||
"echo=echo",\
|
||||
"egrep=egrep",\
|
||||
"expand=expand",\
|
||||
"fgrep=fgrep",\
|
||||
"file=file",\
|
||||
"find=find",\
|
||||
"fmt=fmt",\
|
||||
"grep=grep",\
|
||||
"gunzip=gunzip",\
|
||||
"gzip=gzip",\
|
||||
"head=head",\
|
||||
"hexedit=hexedit",\
|
||||
"iconv=iconv",\
|
||||
"ls=ls",\
|
||||
"lsattr=lsattr",\
|
||||
"lsof=lsof",\
|
||||
"md5sum=md5sum",\
|
||||
"mkdir=mkdir",\
|
||||
"mktemp=mktemp",\
|
||||
"mv=mv",\
|
||||
"nl=nl",\
|
||||
"od=od",\
|
||||
"paste=paste",\
|
||||
"patch=patch",\
|
||||
"pgrep=pgrep",\
|
||||
"printf=printf",\
|
||||
"pwd=pwd",\
|
||||
"readahead=readahead",\
|
||||
"readlink=readlink",\
|
||||
"realpath=realpath",\
|
||||
"rev=rev",\
|
||||
"rm=rm",\
|
||||
"rmdir=rmdir",\
|
||||
"sed=sed",\
|
||||
"seq=seq",\
|
||||
"sha1sum=sha1sum",\
|
||||
"sort=sort",\
|
||||
"split=split",\
|
||||
"stat=stat",\
|
||||
"strings=strings",\
|
||||
"tac=tac",\
|
||||
"tail=tail",\
|
||||
"tar=tar",\
|
||||
"tee=tee",\
|
||||
"touch=touch",\
|
||||
"truncate=truncate",\
|
||||
"uniq=uniq",\
|
||||
"unix2dos=unix2dos",\
|
||||
"unlink=unlink",\
|
||||
"uudecode=uudecode",\
|
||||
"uuencode=uuencode",\
|
||||
"wc=wc",\
|
||||
"which=which",\
|
||||
"xxd=xxd",\
|
||||
"zcat=zcat",\
|
||||
"df=df",\
|
||||
"du=du",\
|
||||
"free=free",\
|
||||
"mount=mount",\
|
||||
"sync=sync",\
|
||||
"cal=cal",\
|
||||
"date=date",\
|
||||
"hwclock=hwclock",\
|
||||
"sleep=sleep",\
|
||||
"time=time",\
|
||||
"uptime=uptime",\
|
||||
"usleep=usleep",\
|
||||
"hostname=hostname",\
|
||||
"nproc=nproc",\
|
||||
"printenv=printenv",\
|
||||
"uname=uname",\
|
||||
"env=env",\
|
||||
"false=false",\
|
||||
"sh=sh",\
|
||||
"test=test",\
|
||||
"true=true",\
|
||||
"yes=yes",\
|
||||
"help=help",\
|
||||
"toybox=toybox",\
|
||||
"reset=reset",\
|
||||
"tty=tty",\
|
||||
"clear=clear",\
|
||||
"mcookie=mcookie",\
|
||||
"mkpasswd=mkpasswd",\
|
||||
"uuidgen=uuidgen",\
|
||||
"factor=factor",\
|
||||
"nohup=nohup",\
|
||||
"iotop=iotop",\
|
||||
"hwclock=hwclock",\
|
||||
"ifconfig=ifconfig",\
|
||||
"netstat=netstat",\
|
||||
"ping=ping",\
|
||||
"ping6=ping6",\
|
||||
"pidof=pidof",\
|
||||
"pmap=pmap",\
|
||||
"prlimit=prlimit",\
|
||||
"ps=ps",\
|
||||
"pwdx=pwdx",\
|
||||
"timeout=timeout",\
|
||||
"top=top",\
|
||||
"ulimit=ulimit",\
|
||||
"watch=watch",\
|
||||
"xargs=xargs",\
|
||||
"diff=diff",\
|
||||
"mkfifo=mkfifo",\
|
||||
"ftpget=ftpget",\
|
||||
"ftpput=ftpput",\
|
||||
"telnet=telnet",\
|
||||
"wget=wget",\
|
||||
"kill=kill",\
|
||||
"pkill=pkill",\
|
||||
"killall=killall",
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user