Setperms Problems

Bob Stockler bob at trebor.iglou.com
Fri May 6 12:32:22 PDT 2005


Tim Fischer wrote (on Fri, May 06, 2005 at 02:59:05PM -0400):

| Well, it prints the lines to std out, so while it may not be "logging to 
| a file" (a simple ">> filename" would probably take care of that) it is 
| still logging it's progress.
| 
| My point is, the -xv *should* do absolutely nothing in terms of the 
| scripts success or failure, but it seems to.  In the same token, a 
| simple "system echo" command should not have any effect on my code, but 
| it does.

I'm not familiar with the shell command "system echo", but a simple
"echo" can change how a script works - because it always returns TRUE.

If you have a section of code that (whether you expected it to or not)
would only execute if the previous section of code ended with a value
of TRUE, and that section ended with a command that returned FALSE,
the code wouldn't do what you intended unless you put an "echo" as the
last command in the earlier section.

Debugging unknown shell scripts has never been my forte, but using
set -xv has helped me find where my logic had been faulty.

Bob

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list