⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unclass2.t

📁 一个开放源代码的 AT&T 的 Korn Shell 的复制品, 支持大多数 ksh89 的特性。
💻 T
字号:
name: xxx-subsitution-eval-orderdescription:	Check order of evaluation of expressionsstdin:	i=1 x= y=	set -A A abc def GHI j G k	echo ${A[x=(i+=1)]#${A[y=(i+=2)]}}	echo $x $yexpected-stdout:	HI	2 4---name: xxx-set-option-1description:	Check option parsing in setstdin:	set -vsA foo -- A 1 3 2	echo ${foo[*]}expected-stderr:	echo ${foo[*]}expected-stdout:	1 2 3 A---name: xxx-exec-1description:	Check that exec exits for built-insarguments: !-i!stdin:	exec print hi	echo still herreexpected-stdout:	hiexpected-stderr-pattern: /.*/---name: xxx-while-1description:	Check the return value of while loops	XXX need to do same for for/select/until loopsstdin:	i=x	while [ $i != xxx ] ; do	    i=x$i	    if [ $i = xxx ] ; then		false		continue	    fi	done	echo loop1=$?		i=x	while [ $i != xxx ] ; do	    i=x$i	    if [ $i = xxx ] ; then		false		break	    fi	done	echo loop2=$?		i=x	while [ $i != xxx ] ; do	    i=x$i	    false	done	echo loop3=$?expected-stdout:	loop1=0	loop2=0	loop3=1---name: xxx-status-1description:	Check that blank lines don't clear $?arguments: !-i!stdin:	(exit 1)	echo $?	(exit 1)		echo $?	trueexpected-stdout:	1	1expected-stderr-pattern: /.*/---name: xxx-status-2description:	Check that $? is preserved in subshells, includes, traps.stdin:	(exit 1)		echo blank: $?		(exit 2)	(echo subshell: $?)		echo 'echo include: $?' > foo	(exit 3)	. ./foo		trap 'echo trap: $?' ERR	(exit 4)	echo exit: $?expected-stdout:	blank: 1	subshell: 2	include: 3	trap: 4	exit: 4---name: xxx-clean-chars-1description:	Check MAGIC character is stuffed correctlystdin:	echo `echo [

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -