bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unexpected return from subscripts


From: Greg Wooledge
Subject: Re: Unexpected return from subscripts
Date: Thu, 26 Jul 2012 08:03:35 -0400
User-agent: Mutt/1.4.2.3i

On Thu, Jul 26, 2012 at 02:48:30AM -0700, wangzhong.neu@gmail.com wrote:
> Hi all,
> 
> I'm not sure whether I should post this here. Sorry if disturb.

help-bash would be a better choice than bug-bash.

> We met a very strange problem with bash "version 3.00.15(1)-release". We are
> using a hadoop-test script to test whether a file exists on HDFS. [...]

Since you did not show the code that is failing, there's not much we
can do.

> ============== 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

If you believe that your "hadoop" command should have returned 1,
but bash believes that it returned 0, then perhaps the bug is in this
"hadoop" command.

Of course, since we have no idea what your bash code actually says,
we can't conclude much of *anything* at this point.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]