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

📄 redir.right

📁 android-w.song.android.widget
💻 RIGHT
字号:
abc./redir.tests: line 15: /tmp/redir-test: cannot overwrite existing fileabcdefdef./redir.tests: line 31: $z: ambiguous redirectPoint 1Point 2to ato bPoint 3to ato ato bto bPoint 4to cPoint 5this is redir1.subthis is redir2.subread line1 "ab"read line2 "root"read line3 "cd"read line4 "daemon"from stdin: aato stdout./redir4.sub: line 32: $fd: ambiguous redirect./redir4.sub: line 33: $fd: ambiguous redirect/tmp/err-and-out:to stdoutto stderr/tmp/err-and-out:to stdoutto stderr0 -- 3 00 -- 4 0abcdefghijkl0abcdcd./redir.tests: line 154: redir1.*: No such file or directory# tests of ksh93-like dup-and-close redirection operatorsexec 9<$0f(){exec 5<$0exec 0<&5-while read line; doecho "$line"done}ftypeset -f f# make sure it was closedread -u 5 fooecho after readexec 5<&0exec <&-read abcdeexec 0<&9-read lineecho $linef () {     exec 5< $0;    exec 0<&5-;    while read line; do        echo "$line";    done}./redir5.sub: line 20: read: 5: invalid file descriptor: Bad file descriptorafter read./redir5.sub: line 27: read: read error: 0: Bad file descriptor# tests of ksh93-like dup-and-close redirection operators///000before blockafter blockc1 is 1c2 is 2c3 is 3c4 is 4fd 10fd 8fd 10fd 812341234cat /tmp/foowhatsisheyto stdoutto stderrto stdoutto stderrto stderrto stdoutto stderrheyto stdoutlogfunc is a functionlogfunc () {     echo "$@" &>>$TMPDIR/log}foobix is a functionbix () {     echo foo 2>&1 | cat}foo

⌨️ 快捷键说明

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