📄 unclass1.t
字号:
name: xxx-quoted-newline-1description: Check that \<newline> works inside of ${}stdin: abc=2 echo ${ab\ c}expected-stdout: 2---name: xxx-quoted-newline-2description: Check that \<newline> works at the start of a here documentstdin: cat << EO\ F hi EOFexpected-stdout: hi---name: xxx-quoted-newline-3description: Check that \<newline> works at the end of a here documentstdin: cat << EOF hi EO\ Fexpected-stdout: hi---name: xxx-multi-assignment-cmddescription: Check that assignments in a command affect subsequent assignments in the same commandstdin: FOO=abc FOO=123 BAR=$FOO echo $BARexpected-stdout: 123---name: xxx-exec-environment-1description: Check to see if exec sets it's environment correctlystdin: FOO=bar exec envexpected-stdout-pattern: /(^|.*\n)FOO=bar\n/---name: xxx-exec-environment-2description: Check to make sure exec doesn't change environment if a program isn't exec-ed# Under os/2, _emx_sig environment variable changes.category: !os:os2stdin: env > bar1 FOO=bar exec; env > bar2 cmp -s bar1 bar2---name: xxx-what-do-you-call-this-1stdin: echo "${foo:-"a"}*"expected-stdout: a*---name: xxx-prefix-strip-1stdin: foo='a cdef' echo ${foo#a c}expected-stdout: def---name: xxx-prefix-strip-2stdin: set a c x='a cdef' echo ${x#$*}expected-stdout: def---name: xxx-variable-syntax-1stdin: echo ${:}expected-stderr-pattern: /bad substitution/expected-exit: 1---
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -