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

📄 tilde.tests

📁 android-w.song.android.widget
💻 TESTS
字号:
# this is needed because posix mode restricts tilde expansion to assignment# statements preceding a command, instead of the default of expanding all# assignment statements on the line (e.g., after `export').  Without this,# the next-to-last test failsset +o posixHOME=/usr/xyzSHELL=~/bashecho ~ch\etecho ~/"foo"echo "~chet"/"foo"echo \~chet/"foo"echo \~chet/barecho ~\chet/barecho ~chet""/barecho ":~chet/"echo abcd~chetecho "SHELL=~/bash"echo $SHELLecho abcd:~chetpath=/usr/ucb:/bin:~/bin:~/tmp/bin:/usr/binecho $pathcd /usrcd /tmpecho ~-echo ~+XPATH=/bin:/usr/bin:.# yes tilde expansionPPATH=$XPATH:~/binecho "$PPATH"# no tilde expansionPPATH="$XPATH:~/bin"echo "$PPATH"# yes tilde expansionexport PPATH=$XPATH:~/binecho "$PPATH"declare -x PPATH=$XPATH:~/binecho "$PPATH"# no tilde expansionexport PPATH="$XPATH:~/bin"echo "$PPATH"declare -x PPATH="$XPATH:~/bin"echo "$PPATH"# more tests of tilde expansion when executing case commandscase ~ in$HOME)	echo ok 1;;*) echo bad 1 ;;esaccase ~ in~)	echo ok 2 ;;\~)	echo bad 2a ;;*)	echo bad 2b ;;esaccase $unset in"")	echo ok 3 ;;*)	echo bad 3 ;;esacUSER=root		# should exist just about everywhereecho ~$USER

⌨️ 快捷键说明

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