@OS question

Brian K. White brian at aljex.com
Mon Apr 12 10:00:14 PDT 2004


Howie wrote:
> The customer of mine who is porting his application to Sun is having a
> problem because @OS is not returning "UNIX".
>
> Since many of his processing tables rely on UNIX or not UNIX the
> question is:  Is there any way to change what @OS returns?
>
> Could I just "patch" the *clerk and *report programs?
>
> Howie

This customer ran linux for about a year and the same thing happened then.
As a result, I went through and found most of the places where this test was
used and changed them to use  @os ne "DOS"

Mark is right, it's the test that is wrong.

You shouldn't have an insane number of things to fix since as I said, I had
cleared up all the original ones for linux and so all you should have to fix
are ones that were added in the last year.

This is why shortsighted code sucks and why quick n dirty sucks and don't
get me started again.


run this to find all the places where UNIX appears in the IF statement.
find /u/appl/filepro -name prc.* |xargs awk -F: '{if($2 ~ "UNIX") print
FILENAME":"FNR"\n"$0"\n"}' |less

on a different copy of the code I see that some _idiot_ did it backwards....
/u/appl/filepro/3disp/prc.trinity:2346
:@os eq "UNIX"  or @os eq "LINUX":who(10) = "Dispatched by" < @id:

that should just say @os ne "DOS" instead of  trying to add every possible
eventual flavor of unix....

Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx  Linux SCO  Prosper/FACTS AutoCAD  #callahans Satriani



More information about the Filepro-list mailing list