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

📄 new-exp2.sub

📁 android-w.song.android.widget
💻 SUB
字号:
export LC_ALL=Cexport LANG=C# test out the new $(< filename) code# it should be exactly equivalent to $(cat filename)FILENAME=/tmp/bashtmp.x$$trap 'rm -f $FILENAME' 0cat >$FILENAME << EOFline 1line 2line 3EOFLINES1=$(cat $FILENAME)LINES2=$(< $FILENAME)if [[ $LINES1 != $LINES2 ]]; then	echo 'whoops: $(< filename) failed'fiLINES2=$(< /tmp/bashtmp.x*)if [[ $LINES1 != $LINES2 ]]; then	echo 'whoops: $(< filename) with glob expansion failed'fi# but the glob expansion in the redirection should fail in posix modeset -o posixLINES2=$(< /tmp/bashtmp.x*)set +o posix# now see what happens when we try it with a non-existant fileLINES3=$(< /tmp/redir-notthere)echo $?

⌨️ 快捷键说明

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