From owner-freebsd-hackers Sun Nov 17 20:10:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE43237B401 for ; Sun, 17 Nov 2002 20:10:39 -0800 (PST) Received: from 12-234-90-219.client.attbi.com (12-234-90-219.client.attbi.com [12.234.90.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4637B43E3B for ; Sun, 17 Nov 2002 20:10:39 -0800 (PST) (envelope-from DougB@FreeBSD.org) Received: from FreeBSD.org (master.gorean.org [10.0.0.2]) by 12-234-90-219.client.attbi.com (8.12.6/8.12.6) with ESMTP id gAI4AXb1044937; Sun, 17 Nov 2002 20:10:34 -0800 (PST) (envelope-from DougB@FreeBSD.org) Message-ID: <3DD86839.823A4505@FreeBSD.org> Date: Sun, 17 Nov 2002 20:10:33 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.8 [en] (X11; U; FreeBSD 4.7-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Lyndon Nerenberg Cc: freebsd-hackers@FreeBSD.org Subject: Re: finding unmatched quotes in shell scripts References: <200211170159.gAH1xCG1052133@orthanc.ab.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lyndon Nerenberg wrote: > > I've tried a number of syntax-colouring editors, to no avail. The quotes > (single, double, and back) *are* balanced, according to everything I've > thrown the script at. In addition to the other excellent suggestions, I'd suggest using the syntax highlighting editor, and start deleting quotes here and there. You might find that the de-highlighting happens in places that you don't expect. Also, it might help you to break the program down into smaller functions. That usually makes it easier to locate the errors. Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message