Re: csh script help

From: Ernie Luzar <luzar722_at_gmail.com>
Date: Fri, 14 Apr 2017 14:32:08 -0400
Chuck Swiger wrote:
> On Apr 14, 2017, at 6:47 AM, Ernie Luzar <luzar722_at_gmail.com> 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.
Received on Fri Apr 14 2017 - 16:31:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:11 UTC