Screen ghost??
John Esak
john at valar.com
Wed Jan 6 09:36:07 PST 2010
Actually, this turns out not to be a bug. It behaves the way it should.
Meaning if you put this:
Rclerk filename -s1 -h here is my heading
You would only get the here as the heading. Arguments to any option must be
surrounded by quotes to encompass spacess. For example:
Rclerk filename -s1 -h "here is my heading"
Will work just fine. So, I guess we have to assume that if we want that
built from a processing table and then called with SYSTEM, we have to force
the "'s around all the words we want in the haedaing... Or the same is true
with any argument to any of the options.
So if you build it this way and run it:
Sy="rclerk filename -s1 -h "\"Equipment File\""
System sy
You get what you want. I guess I have always just naturally used the quotes
around what I knew would have spaces. FilePro removes the quotes when it
puts the heading into the heading box.
John
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of John Esak
> Sent: Wednesday, January 06, 2010 12:21 PM
> To: 'Richard Kreiss'; 'Kenneth Brody'
> Cc: 'filepro'
> Subject: RE: Screen ghost??
>
> Hmmm, you're right. I think that is some sort of bug actually.
>
> You would think it would load sy with all the values of each
> element and
> then cmash the null up against the right most character, but
> it does what
> you say. Never noticed that before.
>
> John
>
>
> > -----Original Message-----
> > From: filepro-list-bounces+john=valar.com at lists.celestial.com
> > [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
> m] On Behalf Of Richard Kreiss
> > Sent: Wednesday, January 06, 2010 11:36 AM
> > To: 'Kenneth Brody'
> > Cc: 'filepro'
> > Subject: RE: Screen ghost??
> >
> >
> >
> > > -----Original Message-----
> > > From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> > > Sent: Tuesday, January 05, 2010 10:54 PM
> > > To: Richard Kreiss
> > > Cc: 'filepro'
> > > Subject: Re: Screen ghost??
> > >
> > > On 1/5/2010 5:32 PM, Richard Kreiss wrote:
> > > [...]
> > > >> Here is the system call we use:
> > > >>
> > > >> system "$PFPROG/fp/dclerk fesequip -sadd -lx -xa -d -t
> 130000 -r
> > > > \""&pm{"\" -h
> > > >> 'EQUIPMENT FILE' "
> > > >
> > > > Try this for you system call:
> > > >
> > > > sy=" fesequip -sadd -lx -xa -d -t 130000 -r "<pm<" -h
> > EQUIPMENT FILE"{""
> > > >
> > > > System "$PFPROG/fp/dclerk"<sy
> > > >
> > > > Not sure if this will work under *nix. However, I have
> > found that fp
> > running
> > > > on windows does not need the " marks.
> > > [...]
> > >
> > > You absolutely need quotes around any parameter that
> > contains "special"
> > > characters, such as spaces. (Or quote the "special" characters
> > themselves.)
> > >
> > > This won't work on any platform:
> > >
> > > dclerk foo -h EQUIPMENT FILE
> > >
> > > It must be:
> > >
> > > dclerk foo -h "EQUIPMENT FILE"
> > >
> > > or something equivalent.
> > >
> > > --
> > > Kenneth Brody
> >
> > Ken,
> >
> > Did not want to reply until I test this.
> >
> > Hd="Equipment File"
> >
> > sy=" foobar -sadd -lx -xa -d -t 130000 -r "<pm<" -h"<hd{""
> >
> > System "$PFPROG/fp/dclerk"<sy
> >
> > I test this on my system and what happened is the -h option
> > only showed the
> > first word which is probably as would be expected if not
> > quotes are used.
> >
> > Richard
> >
> >
> >
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> >
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list