From owner-freebsd-questions Wed Aug 8 15:10:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by hub.freebsd.org (Postfix) with ESMTP id 4F87937B444 for ; Wed, 8 Aug 2001 15:10:17 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.80]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010808220938.MCRF15499.mtiwmhc22.worldnet.att.net@worldnet.att.net>; Wed, 8 Aug 2001 22:09:38 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 2A22450BC6; Wed, 8 Aug 2001 18:08:45 -0400 (EDT) Date: Wed, 8 Aug 2001 18:08:45 -0400 From: parv To: Drew Tomlinson Cc: "FreeBSD Questions (E-mail)" Subject: Re: How To Debug Scripts? Message-ID: <20010808180844.A78540@moo.holy.cow> Mail-Followup-To: Drew Tomlinson , "FreeBSD Questions (E-mail)" References: <5CD46247635BD511B6B100A0CC3F023925A052@ldcmsx01.lc.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5CD46247635BD511B6B100A0CC3F023925A052@ldcmsx01.lc.ca.gov>; from drewt@writeme.com on Wed, Aug 08, 2001 at 02:55:34PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG this was, on the fateful occasion around Aug 08 17:55 -0400, sent by Drew Tomlinson > ... > Anyway, I have written many scripts using OpenVMS on VAXs and > Alphas. In that OS, there's a command called "set verify" that prints each > line of the script as it executes. This way I can see what symbol > substitution has taken place and exactly at what line the error(s) occurred. > Is there something similar to this for Unix scripts? after #!/bin/sh, try "set -o xtrace" & man sh(1)... -- so, do you like word games or scrabble? - parv To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message