英语翻译

英语翻译

题目
英语翻译
请高手帮忙看看下面一段shell脚本是什么意思.
9 dm=
10 for d in /usr/man /usr/share/man /usr/X11R6/man /usr/local/man
11 do
12 if [ -d $d ]; then
13 if [ x$dm = x ]; then dm=$d; else dm=$dm:$d; fi
14 fi
15 done
16 DEFMANPATH=$dm
17 dc=
18 for d in /usr/man/preformat /usr/man /usr/share/man/preformat /usr/share/man
19 do
20 if [ -d $d ]; then
21 if [ x$dc = x ]; then dc=$d; else dc=$dc:$d; fi
22 fi
23 done
24 DEFCATPATH=$dc
25
26 # make a single big /var/cache/man/whatis file,
27 DEFWHATISDIR=/var/cache/man
28 DEFWHATIS=$DEFWHATISDIR/whatis
29
30 AWK=/bin/awk
31
32 # Find a place for our temporary files.
33
34 if TMPFILE=$(mktemp /tmp/whatis.XXXXXX)
35 then
36
37 # make sure TMPFILE is deleted if program is killed or terminates
38 # (just delete this line if your shell doesnt know about trap)
39 trap "rm -rf $TMPFILE" 0
40 trap "rm -rf $TMPFILE; exit 255" 1 2 3 15
答案
将/usr/man /usr/share/man /usr/X11R6/man /usr/local/man变成dm=/usr/man:/usr/share/man:/usr/X11R6/man:/usr/local/man,当然程序判断如果非正常目录就不加到dm变量里了,然后DEFMANPATH=$dmdc同理后面没干啥事儿,...
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.