From owner-freebsd-questions Mon Sep 13 11:37:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from juno.dsj.net (sylvester.dsj.net [208.148.155.228]) by hub.freebsd.org (Postfix) with ESMTP id 39F7E14A2F for ; Mon, 13 Sep 1999 11:37:20 -0700 (PDT) (envelope-from dsj@juno.dsj.net) Received: (from dsj@localhost) by juno.dsj.net (8.9.2/8.9.2) id OAA74079 for freebsd-questions@FreeBSD.ORG; Mon, 13 Sep 1999 14:39:28 -0400 (EDT) (envelope-from dsj) Date: Mon, 13 Sep 1999 14:39:28 -0400 From: "David S. Jackson" To: freebsd-questions@FreeBSD.ORG Subject: bash syntax error... Message-ID: <19990913143928.A74001@juno.dsj.net> Reply-To: "David S. Jackson" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I get the following error /home/dsj/bin/ascfg: 175: Syntax error: "do" unexpected (expecting "}") when I execute the following snippet from a bash script: ----SNIP---- ChangeLooks() # backups for looks go into { # a different backpath and select file in $LOOKPATH/*; do # reside in a different place. FILE=$LOOKPATH/$file # My kludge for editing/copying BACKPATH=$LOOKBACK # them kinda works, though. BackUp $FILE EditIt $FILE echo "Would you like to continue? [y/n] " read domore if [ $domore -eq y ]; then selectone else break fi done } -----SNIP----- The variable names are all defined earlier in the script. What confuses me is the error. I don't see why the 'do' should cause a problem in a select statement. Any ideas? TIA! -- David S. Jackson http://www.dsj.net =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= In theory, theory and practice are the same thing. In practice, they are different. --Bruce Schnier To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message