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

📄 nquote.tests

📁 android-w.song.android.widget
💻 TESTS
字号:
expect(){        echo expect "$@"}expect '<^J^J^J>'recho $'\n\n\n'expect '<++^J++>'f=$'\n'recho "++$f++"unset fz1=$''expect '<>'recho "$z1"ZIFS=$'\n'$'\t'$' 'expect '<^J^I >'recho "$ZIFS"expect '<abc>'recho $'abc'expect '<^M^[^Gabc>'recho $'\r\e\aabc'D=$"hello"," "$"world"expect '<hello,> <world>'recho $Dexpect '<hello, world>'recho "$D"D=$""expect '<>'recho "$D"world=chetexpect '<$hello, world>'recho \$"hello, world"expect '<hello, $world>'recho $"hello, \$world"expect '<hello, "world">'recho $"hello, \"world\""expect '<hello, $"world">'recho $"hello"', $"world"'expect '<hello, $"world">'recho $'hello, $"world"'expect '<$hello, chet>'recho \$"hello, $world"expect '<hello, chet>'recho $"hello, $world"z=$'\v\f\a\b'case "$z" in$'\v\f\a\b')	echo ok;;*)		echo bad;;esac# Dave Korn says this should be allowed and echo 'abcd'echo $'\'abcd\''# printf translates \' to ' ...printf "\'abcd\'\n"# but echo -e doesn'techo -e "\'abcd\'"echo -e "\\'abcd\\'"# and what do we do about unrecognized escape sequences?shopt -s xpg_echorecho $'A\CB'recho "A\CB"cde=crecho $'ab$cde'printf "%b\n" 'A\CB'printf 'A\CB\n'echo 'A\CB'world=chetrecho $'hello, $"world"'recho $'hello, \$"world"'recho $'hello, $\"world"'recho "hello, $"world""# ansi quoting inside double-quoted command subst - bash-3.1 bugecho $(set -- $'a b'; echo $#)echo "$(set -- $'a b'; echo $#)"echo "$(echo $';foo')"args (){ for a in "$@";do echo "'$a'";done}unset mytabrecho "${mytab:-$'\t'}"recho "$( args $'A\tB' )"${THIS_SH} ./nquote1.sub

⌨️ 快捷键说明

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