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

📄 read.t

📁 一个开放源代码的 AT&T 的 Korn Shell 的复制品, 支持大多数 ksh89 的特性。
💻 T
字号:
## To test:#   POSIX:#	- if no -r, \ is escape character#	    - \newline disappear#	    - \<IFS> -> don't break here#	    - \<anything-else> -> <anything-else>#	- if -r, backslash is not special#	- if stdin is tty and shell interactive#	    - prompt for continuation if \newline (prompt to stderr)#	    - a here-document isn't terminated after newline ????#	- remaining vars set to empty string (not null)#	- check field splitting#	- left over fields and their seperators assigned to last var#	- exit status is normally 0#	- exit status is > 0 on eof#	- exit status > 0 on error#	- signals interrupt reads#   extra:#	- can't change read-only variables#	- error if var name bogus#	- set -o allexport effects read# ksh:#	x check default variable: REPLY#	- check -p, -s, -u options#	- check var?prompt stuff#	- "echo a b | read x y" sets x,y in parent shell (at&t)#name: read-IFS-1description:	Simple test, default IFSstdin:	echo "A B " > IN	unset x y z	read x y z < IN	echo 1: "x[$x] y[$y] z[$z]"	echo 1a: ${z-z not set}	read x < IN	echo 2: "x[$x]"expected-stdout:	1: x[A] y[B] z[]	1a:	2: x[A B]---name: read-ksh-1description:	If no var specified, REPLY is usedstdin:	echo "abc" > IN	read < IN	echo "[$REPLY]";expected-stdout:	[abc]---

⌨️ 快捷键说明

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