使用sh-x调试shell脚本

参考:http://blog.chinaunix.net/uid-20564848-id-73502.html

1. 通过sh -x 脚本名  #显示脚本执行过程
2.脚本里set -x选项,轻松跟踪调试shell脚本

[以下字段转自:http://linux.chinaitlab.com/SHELL/727128_4.html]
"-x"选项可用来跟踪脚本的执行,是调试shell脚本的强有力工具。“-x”选项使shell在执行脚本的过程中把它实际执行的每一个命令行显示出来,并且在行首显示一个"+"号。 "+"号后面显示的是经过了变量替换之后的命令行的内容,有助于分析实际执行的是什么命令。 “-x”选项使用起来简单方便,可以轻松对付大多数的shell调试任务,应把其当作首选的调试手段。
    shell的执行选项除了可以在启动shell时指定外,亦可在脚本中用set命令来指定。 "set -参数"表示启用某选项,"set +参数"表示关闭某选项。有时候我们并不需要在启动时用"-x"选项来跟踪所有的命令行,这时我们可以在脚本中使用set命令,如以下脚本片段所示:
    set -x    #启动"-x"选项 要跟踪的程序段 set +x     #关闭"-x"选项
    set命令同样可以使用上一节中介绍的调试钩子—DEBUG函数来调用,这样可以避免脚本交付使用时删除这些调试语句的麻烦,如以下脚本片段所示:
    DEBUG set -x    #启动"-x"选项 要跟踪的程序段 DEBUG set +x    #关闭"-x"选项
对"-x"选项的增强
    "-x"执行选项是目前最常用的跟踪和调试shell脚本的手段,但其输出的调试信息仅限于进行变量替换之后的每一条实际执行的命令以及行首的一个"+"号提示符,居然连行号这样的重要信息都没有,对于复杂的shell脚本的调试来说,还是非常的不方便。幸运的是,我们可以巧妙地利用shell内置的一些环境变量来增强"-x"选项的输出信息,下面先介绍几个shell内置的环境变量:

$LINENO
    代表shell脚本的当前行号,类似于C语言中的内置宏__LINE__

$FUNCNAME
    函数的名字,类似于C语言中的内置宏__func__,但宏__func__ 只能代表当前所在的函数名,而$FUNCNAME的功能更强大,它是一个数组变量,其中包含了整个调用链上所有的函数的名字,故变量${FUNCNAME [0]}代表shell脚本当前正在执行的函数的名字,而变量${FUNCNAME[1]}则代表调用函数${FUNCNAME[0]}的函数的名字,余者可以依此类推。

$PS4
    主提示符变量$PS1和第二级提示符变量$PS2比较常见,但很少有人注意到第四级提示符变量$PS4的作用。我们知道使用“-x”执行选项将会显示shell脚本中每一条实际执行过的命令,而$PS4的值将被显示在“-x”选项输出的每一条命令的前面。在Bash Shell中,缺省的$PS4的值是"+"号。(现在知道为什么使用"-x"选项时,输出的命令前面有一个"+"号了吧?)。

利用$PS4这一特性,通过使用一些内置变量来重定义$PS4的值,我们就可以增强"-x"选项的输出信 息。例如先执行export PS4=‘+{$LINENO:${FUNCNAME[0]}} ‘, 然后再使用“-x”选项来执行脚本,就能在每一条实际执行的命令前面显示其行号以及所属的函数名。

[email protected]:~$ wget http://downloads.sourceforge.net/iperf/iperf-2.0.4.tar.gz?modtime=1207626803&big_mirror=0
[email protected]:/vobs/iperf-2.0.4$ sh -x ./configure --host=arm-linux
+ test -n 
+ BIN_SH=xpg4
+ export BIN_SH
+ DUALCASE=1
+ export DUALCASE
+ as_cr_letters=abcdefghijklmnopqrstuvwxyz
+ as_cr_LETTERS=ABCDEFGHIJKLMNOPQRSTUVWXYZ
+ as_cr_Letters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
+ as_cr_digits=0123456789
+ as_cr_alnum=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
+ test  != set
+ echo #! /bin/sh
+ echo exit 0
+ chmod +x conf25256.sh
+ PATH_SEPARATOR=:
+ rm -f conf25256.sh
+ as_unset=unset
+ as_nl=

+ IFS=

+ as_myself=./configure
+ test x./configure = x
+ test ! -f ./configure
+ unset ENV
+ unset MAIL
+ unset MAILPATH
+ PS1=$ 
+ PS2=> 
+ PS4=+ 
+ set +x
+ eval LANG=C
+ LANG=C
+ export LANG
+ set +x
+ eval LANGUAGE=C
+ LANGUAGE=C
+ export LANGUAGE
+ set +x
+ eval LC_ADDRESS=C
+ LC_ADDRESS=C
+ export LC_ADDRESS
+ set +x
+ eval LC_ALL=C
+ LC_ALL=C
+ export LC_ALL
+ set +x
+ eval LC_COLLATE=C
+ LC_COLLATE=C
+ export LC_COLLATE
+ set +x
+ eval LC_CTYPE=C
+ LC_CTYPE=C
+ export LC_CTYPE
+ set +x
+ eval LC_IDENTIFICATION=C
+ LC_IDENTIFICATION=C
+ export LC_IDENTIFICATION
+ set +x
+ eval LC_MEASUREMENT=C
+ LC_MEASUREMENT=C
+ export LC_MEASUREMENT
+ set +x
+ eval LC_MESSAGES=C
+ LC_MESSAGES=C
+ export LC_MESSAGES
+ set +x
+ eval LC_MONETARY=C
+ LC_MONETARY=C
+ export LC_MONETARY
+ set +x
+ eval LC_NAME=C
+ LC_NAME=C
+ export LC_NAME
+ set +x
+ eval LC_NUMERIC=C
+ LC_NUMERIC=C
+ export LC_NUMERIC
+ set +x
+ eval LC_PAPER=C
+ LC_PAPER=C
+ export LC_PAPER
+ set +x
+ eval LC_TELEPHONE=C
+ LC_TELEPHONE=C
+ export LC_TELEPHONE
+ set +x
+ eval LC_TIME=C
+ LC_TIME=C
+ export LC_TIME
+ expr a : \(a\)
+ expr 00001 : .*\(...\)
+ test X001 = X001
+ as_expr=expr
+ basename -- /
+ test X/ = X/
+ as_basename=basename
+ basename -- ./configure
+ as_me=configure
+ unset CDPATH
+ test x = x
+ as_have_required=yes
+ test yes = yes
+ as_candidate_shells=
+ as_save_IFS=

+ IFS=:
+ IFS=

+ test -z /usr/bin/posix
+ as_candidate_shells= /usr/bin/posix/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5
+ IFS=

+ test -z /bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5
+ IFS=

+ test -z /usr/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5
+ IFS=

+ test -z /usr/local/arm-linux-4.2.1/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5
+ IFS=

+ test -z /usr/local/jdk1.5/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5
+ IFS=

+ test -z /usr/local/arm-linux/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5
+ IFS=

+ test -z /usr/local/sbin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5
+ IFS=

+ test -z /usr/local/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5
+ IFS=

+ test -z /usr/sbin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5
+ IFS=

+ test -z /usr/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5
+ IFS=

+ test -z /sbin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5
+ IFS=

+ test -z /bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5
+ IFS=

+ test -z /usr/games
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5
+ IFS=

+ test -z 
+ as_dir=.
+ IFS=

+ test -z /home/luther/work/Android/eclipse
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5
+ IFS=

+ test -z /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh5
+ IFS=

+ test -z /opt/Sourcery_G++_Lite/bin
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh5 /opt/Sourcery_G++_Lite/bin/sh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh5 /opt/Sourcery_G++_Lite/bin/sh /opt/Sourcery_G++_Lite/bin/bash
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh5 /opt/Sourcery_G++_Lite/bin/sh /opt/Sourcery_G++_Lite/bin/bash /opt/Sourcery_G++_Lite/bin/ksh
+ as_candidate_shells= /usr/bin/posix/sh /usr/bin/posix/bash /usr/bin/posix/ksh /usr/bin/posix/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /usr/local/arm-linux-4.2.1/bin/sh /usr/local/arm-linux-4.2.1/bin/bash /usr/local/arm-linux-4.2.1/bin/ksh /usr/local/arm-linux-4.2.1/bin/sh5 /usr/local/jdk1.5/bin/sh /usr/local/jdk1.5/bin/bash /usr/local/jdk1.5/bin/ksh /usr/local/jdk1.5/bin/sh5 /usr/local/arm-linux/bin/sh /usr/local/arm-linux/bin/bash /usr/local/arm-linux/bin/ksh /usr/local/arm-linux/bin/sh5 /usr/local/sbin/sh /usr/local/sbin/bash /usr/local/sbin/ksh /usr/local/sbin/sh5 /usr/local/bin/sh /usr/local/bin/bash /usr/local/bin/ksh /usr/local/bin/sh5 /usr/sbin/sh /usr/sbin/bash /usr/sbin/ksh /usr/sbin/sh5 /usr/bin/sh /usr/bin/bash /usr/bin/ksh /usr/bin/sh5 /sbin/sh /sbin/bash /sbin/ksh /sbin/sh5 /bin/sh /bin/bash /bin/ksh /bin/sh5 /usr/games/sh /usr/games/bash /usr/games/ksh /usr/games/sh5 /home/luther/work/Android/eclipse/sh /home/luther/work/Android/eclipse/bash /home/luther/work/Android/eclipse/ksh /home/luther/work/Android/eclipse/sh5 /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/bash /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/ksh /home/luther/work/Android/android-sdk_m5-rc15_linux-x86/tools/sh5 /opt/Sourcery_G++_Lite/bin/sh /opt/Sourcery_G++_Lite/bin/bash /opt/Sourcery_G++_Lite/bin/ksh /opt/Sourcery_G++_Lite/bin/sh5
+ IFS=

+ test -f /usr/bin/posix/sh
+ test -f /usr/bin/posix/sh.exe
+ test -f /usr/bin/posix/bash
+ test -f /usr/bin/posix/bash.exe
+ test -f /usr/bin/posix/ksh
+ test -f /usr/bin/posix/ksh.exe
+ test -f /usr/bin/posix/sh5
+ test -f /usr/bin/posix/sh5.exe
+ test -f /bin/sh
+ CONFIG_SHELL=/bin/sh
+ as_have_required=yes
+ /bin/sh
+ test -f /bin/bash
+ CONFIG_SHELL=/bin/bash
+ as_have_required=yes
+ /bin/bash
+ break
+ test x/bin/bash != x
+ unset BASH_ENV
+ unset ENV
+ export CONFIG_SHELL
+ exec /bin/bash ./configure --host=arm-linux
configure: WARNING: If you wanted to set the --build type, don‘t use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking for arm-linux-g++... arm-linux-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of arm-linux-g++... gcc3
checking for arm-linux-gcc... arm-linux-gcc
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for arm-linux-gcc option to accept ISO C89... none needed
checking dependency style of arm-linux-gcc... gcc3
checking for strerror in -lcposix... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for arm-linux-ranlib... arm-linux-ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... arm-linux-gcc
checking for gethostbyname... yes
checking for socket... yes
checking how to run the C preprocessor... arm-linux-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in include/iperf-int.h (assuming C99 compatible system)
checking 3rd argument of accept... socklen_t
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking for working memcmp... no
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for gettimeofday... yes
checking for memset... yes
checking for pthread_cancel... no
checking for select... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking for usleep... yes
checking for snprintf... yes
checking for inet_pton... yes
checking for inet_ntop... yes
checking for gettimeofday... (cached) yes
checking *printf() support for %lld... checking *printf() support for %qd... checking for bool... no
checking size of bool... 0
checking if true is defined... yes
checking whether byte ordering is bigendian... no
checking for struct ip_mreq... yes
checking whether IP_ADD_MEMBERSHIP is declared... yes
checking for multicast support... yes
checking for struct sockaddr_storage... yes
checking for struct sockaddr_in6... yes
checking whether AF_INET6 is declared... yes
checking for IPv6 headers and structures... yes
checking for struct ipv6_mreq... yes
checking whether IPV6_ADD_MEMBERSHIP is declared... yes
checking whether IPV6_MULTICAST_HOPS is declared... yes
checking for IPv6 multicast support... yes
checking whether make is GNU make... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing include/iperf-int.h commands
config.status: creating include/iperf-int.h : _IPERF_INCLUDE_IPERF_INT_H
config.status: include/iperf-int.h is unchanged

时间: 2025-01-15 16:42:44

使用sh-x调试shell脚本的相关文章

如何调试shell脚本

今天看shell脚本攻略的时候,看见这个方法,感觉还是不错的 #!/bin/bash function DEBUG(){ [[ $_DEBUG == 'on' ]] && [email protected] || : } for i in {1..10} do DEBUG echo $i done _DEBUG=on ./debug.sh

linux中调试shell脚本

原来的脚本Check.sh: monfile="/var/log/test/testMon.txt"logfile="/var/log/test/testMon.log"touch $monfile ... 该脚本是在window里编辑的,编辑后上传到linux的 问题: 运行后,目录下出现的文件是testMon.txt??和testMon.log?? 就是会有乱码 修改过程: 执行sh -x Check.sh,就发现后面多了\r:monfile=$'/var/lo

RHEL环境下调试Shell脚本时遇到字符串转换整数的问题

字符串转整型!这种需求应该在编程语言里很常见,Shell里就太麻烦了.有人问为什么要转换?我遇到的问题是参数数量$#需要进行整型运算,而$#取出来的却是字符串,以下为证: if [ $# != 1 ] ; then......fi这里只能用!=,=,==字符串的比较符,而使用-eq,-lt这些整数比较符就报错了.需要用来做运算就必需转换为整型,在网上查了半天然后问了一大圈朋友,得到的方法却是这样的i=`expr $# + 0 `这种方法确实有点搞笑了,但好象真的没有其它更好的办法了! 还要注意的

shell脚本从入门到精通(中级)之提高篇

shell 脚本入门到精通(中级) 一.shell 脚本的执行 二.输出格式化 一.shell 脚本的执行 1. 脚本执行的4种方法 $ ls /tmp/test.sh /tmp/test.sh #!/bin/bash # test.sh # 这里借助SHLVL这个变量,SHLVL可以显示shell的层级, # 每启动一个shell,这个值就加1 echo "shell level :$SHLVL" echo "hello world!" 切换到shell脚本所在目

shell脚本调试技术_转

转自:http://itlab.idcquan.com/linux/SHELL/727128.html 本文全面系统地介绍了shell脚本调试技术,包括使用echo, tee, trap等命令输出关键信息,跟踪变量的值,在脚本中植入调试钩子,使用"-n"选项进行shell脚本的语法检查, 使用"-x"选项实现shell脚本逐条语句的跟踪,巧妙地利用shell的内置变量增强"-x"选项的输出信息等. 一. 前言 shell编程在unix/linux

Shell脚本调试技术

一. 前言 shell编程在unix/linux世界中使用得非常广泛,熟练掌握shell编程也是成为一名优秀的unix/linux开发者和系统管理员的必经之路.脚本调试的主要工作就是发现引发脚本错误的原因以及在脚本源代码中定位发生错误的行,常用的手段包括分析输出的错误信息,通过在脚本中加入调试语句,输出调试信息来辅助诊断错误,利用调试工具等.但与其它高级语言相比,shell解释器缺乏相应的调试机制和调试工具的支持,其输出的错误信息又往往很不明确,初学者在调试脚本时,除了知道用echo语句输出一些

【转】shell脚本调试(bash trap support bashdb )

原文网址:http://zhu8337797.blog.163.com/blog/static/170617549201122512712136/ 命 令 选 项 功 能 bash –x 脚本名 回显 在变量替换之后.执行命令之前,显示脚本的每一行 bash –v 脚本名 详细 在执行之前,按输入的原样打印脚本中各行 bash –n 脚本名 不执行 解释但不执行命令 set –x 打开回显 跟踪脚本的执行 set +x 关闭回显 关闭跟踪功能 --------------------------

shell脚本的调试

-n 只读取shell脚本,但不实际执行 "-n"可用于测试shell脚本是否存在语法错误,但不会实际执行命令.在shell脚本编写完成之后,实际执行之前,首先使用"-n"选项来测试脚本是否存在语法错误是一个很好的习惯.因为某些shell脚本在执行时会对系统环境产生影响,比如生成或移动文件等,如果在实际执行才发现语法错误,您不得不手工做一些系统环境的恢复工作才能继续测试这个脚本. -c "string" 从strings中读取命令 "-

Linux Shell脚本面试25问

Q:1 Shell脚本是什么.它是必需的吗? 答:一个Shell脚本是一个文本文件,包含一个或多个命令.作为系统管理员,我们经常需要使用多个命令来完成一项任务,我们可以添加这些所有命令在一个文本文件(Shell脚本)来完成这些日常工作任务. Q:2 什么是默认登录shell,如何改变指定用户的登录shell 答:在Linux操作系统,“/bin/bash”是默认登录shell,是在创建用户时分配的.使用chsh命令可以改变默认的shell.示例如下所示: # chsh <用户名> -s <