permissions issue on print to a file

Brian K. White brian at aljex.com
Mon Dec 4 18:57:16 PST 2006


----- Original Message ----- 
From: "Nancy Palmquist" <nlp at vss3.com>
To: "Brian K. White" <brian at aljex.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Monday, December 04, 2006 6:07 PM
Subject: Re: permissions issue on print to a file


> Brian K. White wrote:
>>
>> ----- Original Message ----- From: "Nancy Palmquist" <nlp at vss3.com>
>> To: "Dennis Malen" <dmalen at malen.com>; "filePro List" 
>> <filepro-list at lists.celestial.com>
>> Sent: Monday, December 04, 2006 2:36 PM
>> Subject: Re: permissions issue on print to a file
>>
>>
>>> Dennis Malen wrote:
>>>
>>>> Nancy,
>>>>
>>>> I assume fm is the name of the file. What is the rest after fm:
>>>>
>>>> fm{" 2>&1"
>>
>>
>> that should really be
>> fm<"2>&1"
>
> I must have typed it wrong for the list because these are working just 
> fine.
>
> Nancy
>>
>> The { would suck the 2 right up against the filename making it part of 
>> the filename in fm.
>> I guess including a space in the litteral after the { must have been 
>> saving it all those times but it's safer to do it right.

Oh I beleive you typed it right and that it works.
I didn't mean to say it flat out can't be working that way.
That space at the beginning of the litteral to the right of the operator is 
probably what saves it and lets it work.

fp is apparently stripping spaces only in one direction, to the left of the 
{ operator. ie:

we all know
"aaa      " { "bbb"
would come out:
"aaabbb"
yet if the above is typed correctly and still works, it means fp is leaving 
spaces to the right of the operator alone:
"aaa    " { " bbb"
is coming out
"aaa bbb"

What I meant to say was that it's sort of working by luck, or by mistake 
even, as long as the leading space is there and no other programmer is going 
to remove it (since it seems harmless but superfluous and untidy at first 
glance), and as long as fp continues to treat { just that way.
Also it's less clear what the intent is when reading it. "Was this 
programmer trying to concatenate the strings together? Else why did they use 
the concat operator?" etc...

There does need to be a space, so in that light it makes more sense to me to 
use the operator that ensures a space.
Instead of using the operator that strips all spaces but with a gimmick to 
get a space anyways.

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



More information about the Filepro-list mailing list