From owner-freebsd-current@freebsd.org Fri Apr 14 17:03:15 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 115D1D3D05C for ; Fri, 14 Apr 2017 17:03:15 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E92EDB01 for ; Fri, 14 Apr 2017 17:03:14 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay3.apple.com (relay3.apple.com [17.128.113.83]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id 90.F4.04732.CC001F85; Fri, 14 Apr 2017 10:03:08 -0700 (PDT) X-AuditID: 11973e15-7c68a9a00000127c-fd-58f100cce50b Received: from [17.150.219.72] (Unknown_Domain [17.150.219.72]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by relay3.apple.com (Apple SCV relay) with SMTP id 5F.82.22697.CC001F85; Fri, 14 Apr 2017 10:03:08 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: csh script help From: Chuck Swiger In-Reply-To: <58F0D301.7000509@gmail.com> Date: Fri, 14 Apr 2017 10:03:07 -0700 Cc: FreeBSD current Content-Transfer-Encoding: quoted-printable Message-Id: <9A420780-8DEB-4FBA-9CDE-A9E152110E38@mac.com> References: <58F0D301.7000509@gmail.com> To: Ernie Luzar X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsUi2FAYrHuG4W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ezkgjvpH9AId6UxMqq1KL8 +KLSnNTiQ4zSHCxK4rz9u4FSAumJJanZqakFqUUwWSYOTqkGRsn0Z4su3lbIlq65O5fV32JR 1ZLZB8/4eZd5dqxvemKpcudUJPuW6/u7Xx7LzKli+8exWnzTkYO9Pk97FIperFK+lhm0mnN+ b1H7gr9vT75YevPs0ftJNy9N7C5d/XR6MKNHyZW5p2w/qkQkrcq94TTn/azAUuFv2c7fPG8Z N6/O5IrsfpTXu1yJpTgj0VCLuag4EQD9uOd0KAIAAA== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 17:03:15 -0000 On Apr 14, 2017, at 6:47 AM, Ernie Luzar wrote: > To aid in debugging the script I'm writing, I place "echo" commands = throughout so I can kind of have a trace of the logic as different = conditions are processed. Normally I just delete these "echo" commands = after I get the script working. Since you've gotten an answer to the question you asked, let me only = note that both sh and csh support the -x flag, which causes the shell to = echo the commands as it runs. This is extremely helpful for debugging. Regards, --=20 -Chuck