It sounds to me like you have somehow aliased cd. This may be due to a sysadmin being too clever or due to your own profile. Needless to say, this is really bad practice.
Here is what I see on Redhat: -bash-3.00$ cd /tmp -bash-3.00$ (no output from cd) On 7/18/07 9:15 AM, "charlie w" <[EMAIL PROTECTED]> wrote: > Specifically this: > > bin=`dirname "$0"` > bin=`cd "$bin"; pwd` > > . "$bin"/hadoop-config.sh > > The problem is that the 'cd' command on cygwin and Fedora is not silent, so > if one tries: > > bin/hadoop namenode format > > one winds up with this output: > > bin/hadoop: line 22: /home/charlie/hadoop-0.13.0/bin > /home/charlie/bin/hadoop-config.sh: No such file or directory > > It appears that simply adding >/dev/null to the cd command fixes things: > > bin=`cd "$bin" > /dev/null; pwd`
