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

📄 type.tests

📁 android-w.song.android.widget
💻 TESTS
字号:
set +o posixhash -runalias -a# this should echo nothingtype# this should be a usage errortype -r ${THIS_SH}# these should behave identicallytype nottherecommand -v nottherealias m=moreunset -f func 2>/dev/nullfunc() { echo this is func; }type -t functype -t whiletype -t builtintype -t /bin/shtype -t ${THIS_SH}type -t mvtype func# the following two should produce identical outputtype whiletype -a whiletype builtintype /bin/shcommand -v funccommand -V funccommand -v whilecommand -V while# the following two lines should produce the same output# post-3.0 patch makes command -v silent, as posix specifies# first test with alias expansion off (should all fail or produce no output)type -t mtype mcommand -v malias -palias m# then test with alias expansion on shopt -s expand_aliasestype mtype -t mcommand -v malias -palias mcommand -V mshopt -u expand_aliasescommand -v builtincommand -V builtincommand -v /bin/shcommand -V /bin/shunset -f functype funcunalias mtype mhash -rhash -p /bin/sh shtype -p shSHBASE=${THIS_SH##*/}hash -p /tmp/$SHBASE $SHBASEtype -p $SHBASEtype $SHBASEtype -t $SHBASE# make sure the hash table looks righthash# bug in versions of bash up to and including bash-3.2f() {        v=$'\001'    }type f | cat -v${THIS_SH} type1.sub${THIS_SH} type2.sub${THIS_SH} type3.sub

⌨️ 快捷键说明

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