Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2002 12:04:47 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: ';;' instead of 'fi'
Message-ID:  <200209141004.g8EA4lYL096135@lurza.secnetix.de>
In-Reply-To: <20020914094222.A16534@mail.kicelo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Manuel Enrique Garcia Cuesta <manolo@kicelo.org> wrote:
 > === Jon Longoria escribía
 > [...]
 >> > >         [Nn][Oo])
 >> > >                 dumpdir='NO'
 >> > >                 ;;
 >> > >         esac
 >> > >         if [ "$[dumpdir]" != 'NO' ]; then
 >> > >                 echo -n 'Checking for core dump: '
 >> > >                 /sbin/savecore ${savecore_flags} "${dumpdir}"
 >> > >         fi
 >> > >         ;;  <===( +++ NOTE: LINE 427 +++ )
 >> > > esac
 > 
 >         Both that ';;' and the 'esac' in the next line are misplaced
 > and should be out of there, and there should be some 'fi' instead. I
 > would wipe out those two offending bits and put fi in there, but I
 > wonder whether /etc/rc may be further messed up.

Furthermore, "$[dumpdir]" should be "${dumpdir}".
It's not a syntax error, but it messes up savecore.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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