At Wed, 5 Sep 2007 00:40:04 +0900,
Bil K. wrote in [ruby-talk:267545]:
I’m a bit slow… can you explain further how
I might use ‘set -e’?
Setting -e option in a shell script causes the shell to exit
immediately if a command exits with a non-zero status.
So you can write many commands without && and \s.
set -e
echo “Building ${VERSION}-${SUFFIX}”
mkdir ${VERSION}-${SUFFIX}
cd ${VERSION}-${SUFFIX}
…/configure --prefix=/usr/local --program-suffix=19
make
sudo make install
A difference is that it exits with a non-zero status by -e.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.