From owner-freebsd-current@freebsd.org Fri Apr 14 18:31:52 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 52956D3E619 for ; Fri, 14 Apr 2017 18:31:52 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A592D19 for ; Fri, 14 Apr 2017 18:31:52 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id 70so6562756ita.0 for ; Fri, 14 Apr 2017 11:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=bTZ1YPK2x7THAXKVcHVBO+vz1OcQp2Os1++EiYZ/fE4=; b=CxIzYQsgVh8w4OFJe4z9mVQHYZBQrHrZt4oCA7P/n9DaWizPo9k3ff9OnpkyvjfQ8Z fzLUbudmqOikTJq3PelQlMHmtkkFBexYMkLSW2V8SbKJLnpeuPgmS8hqU+irfkoGR78a aFsfWX4UOsW1SgR54N5Th/hzcudyoCFHyNOeAJrd0bEZFqOfmmFrtf9haIllfyY0VIRG V7b0E3x3caHYDTA3lYY1VWGa1W8kBwD6gkjWcswpBtJTT3YlZWxy6nRV6veAdXl1u9lc u7iDzCCwW8B0m4963t/Ad1J43BfB48OAK9hoRKwEMVPrT80VWsoZY6i7u9xOEGb3sfLb SYTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=bTZ1YPK2x7THAXKVcHVBO+vz1OcQp2Os1++EiYZ/fE4=; b=DHxCNHPgvkJqsTVtGuQqlkSNuWLx61PGjrWlCKM3Fp+Vcq02jrosJwoqK+FwXyzWzx H4AN6G08y3k7VAkPZJMDRQk9mThqJpcBp1T4R5ZzEAQ4lH/y2q27bTGgGxvW/2eJHaUm r0eJcxGu2l2Bu/fEPYGnewYcjpPc93sJ2lwZmOgDAV4ZeBks+WLVgrBJl1WC8lQRJMU/ BQ5AgUvOgNk3qUakCfvxwfngcu61yxZMrP1InuWilwrWYq3EJ+8FMBPnIYWdgO2HAFkj SkVzZLzYExU48JUYeMpuyF/X3Gc0JQ5WNxfJu3/l2+fbDyOcKrzOEY7fc6ApEzssGkFs 4nJw== X-Gm-Message-State: AN3rC/4i3RXimRpiIa6BwuXIw3R95fegtY0MSoQ4Un31dXKPAZZlvEuB 3scmB/gl54Cl6Q== X-Received: by 10.36.103.215 with SMTP id u206mr9302itc.6.1492194711435; Fri, 14 Apr 2017 11:31:51 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-57.neo.res.rr.com. [74.141.88.57]) by smtp.googlemail.com with ESMTPSA id z20sm1380827ioz.23.2017.04.14.11.31.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Apr 2017 11:31:51 -0700 (PDT) Message-ID: <58F115A8.8010407@gmail.com> Date: Fri, 14 Apr 2017 14:32:08 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Chuck Swiger CC: FreeBSD current Subject: Re: csh script help References: <58F0D301.7000509@gmail.com> <9A420780-8DEB-4FBA-9CDE-A9E152110E38@mac.com> In-Reply-To: <9A420780-8DEB-4FBA-9CDE-A9E152110E38@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 18:31:52 -0000 Chuck Swiger wrote: > 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, Where is the this -x flag coded at? Do the executed lines roll fast off the screen or can I slowly step through the script a line at a time? Thanks for this bit of information.