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`
