From owner-freebsd-questions Wed Aug 8 15:31:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from absinthe2.dyndns.org (adsl-64-169-154-103.dsl.chic01.pacbell.net [64.169.154.103]) by hub.freebsd.org (Postfix) with ESMTP id 551AB37B405 for ; Wed, 8 Aug 2001 15:31:15 -0700 (PDT) (envelope-from fred@absinthe2.dyndns.org) Received: (from fred@localhost) by absinthe2.dyndns.org (8.11.3/8.11.3) id f78MV7M47090; Wed, 8 Aug 2001 15:31:07 -0700 (PDT) (envelope-from fred) Date: Wed, 8 Aug 2001 15:31:07 -0700 From: Fred Condo To: Drew Tomlinson Cc: "FreeBSD Questions (E-mail)" Subject: Re: How To Debug Scripts? Message-ID: <20010808153107.B47033@absinthe.condo.chico.ca.us> References: <5CD46247635BD511B6B100A0CC3F023925A052@ldcmsx01.lc.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 On Wed, Aug 08, 2001 at 02:55:34PM -0700, Drew Tomlinson wrote: > I am attempting to write my first FBSD script. My shell is tcsh but I'm > writing the script to use the standard /bin/sh (this is the way I should do > it, right?). 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? > sh -x scriptname To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message