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

📄 lastpipe.tests

📁 android-w.song.android.widget
💻 TESTS
字号:
binfalse(){	$binfalse || return 1	# normalize return value}if [ -x /usr/bin/true ]; then	bintrue=/usr/bin/trueelif [ -x /bin/true ]; then	bintrue=/bin/trueelse	bintrue=truefiif [ -x /usr/bin/false ]; then	binfalse=/usr/bin/falseelif [ -x /bin/false ]; then	binfalse=/bin/falseelse	binfalse=truefishopt -s lastpipeunset foo barecho a b c | read fooecho after 1: foo = $foounset totdeclare -i totprintf "%d\n" 1 2 3 | while read foo; do tot+=$foo; doneecho after 2: tot = $totunset barecho g h i | bar=7echo after: $barunset foo lastprintf "%s\n" a b c | while read foo; do last=$foo; doneecho last = $lastexit 142 | falseecho $? -- ${PIPESTATUS[@]}true | false | $bintrueecho $? -- ${PIPESTATUS[@]}true | $bintrue | falseecho $? -- ${PIPESTATUS[@]}set -o pipefailtrue | $bintrue | falseecho $? -- ${PIPESTATUS[@]}true | binfalse | trueecho $? -- ${PIPESTATUS[@]}set +o pipefail${THIS_SH} ./lastpipe1.subecho lastpipe1.sub returns $?

⌨️ 快捷键说明

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