[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Unexpected return from subscripts
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Unexpected return from subscripts |
Date: |
Fri, 27 Jul 2012 09:23:20 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Fri, Jul 27, 2012 at 12:08:00PM +0800, Zhong Wang wrote:
> ============== sh -x DEBUG LOG ==============
> + /home/work/hadoop-client/
> hadoop/bin/hadoop dfs -test -e xxxFile
> + '[' 0 -ne 0 ']' # this is unexpected, the real return value is 1.
> + some other things...
> + ...
> + ...
> + test: File does not exists: xxxFile # this is unexpeted, should be
> printed before the condition statement. Looks like test script goes to
> *background*
> + ...
> =============================================
Show the actual script too. We can't figure out what's wrong with your
code if we can't see your code.