Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 1995 21:27:02 +0100
From:      Hinrich Eilts <eilts@iwte01.dialin.rrze.uni-erlangen.de>
To:        freebsd-questions@freebsd.org
Subject:   Bug in /bin/sh ?
Message-ID:  <199510062027.VAA00550@odin>

next in thread | raw e-mail | index | archive | help
If I start following script

#!/bin/sh
set -e
if [ x = y ]; then
  a=b
else
  true
  b=c
fi
echo Hello

it runs like expected, but if I comment out the "true",
it stops right after "b=c" while running on NeXT, Linux
and HPUX.

Hinrich






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510062027.VAA00550>