csh script help
Chuck Swiger
cswiger at mac.com
Fri Apr 14 17:03:15 UTC 2017
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,
--
-Chuck
More information about the freebsd-current
mailing list