> I have a better solution:  please apply the following patch. This treats the
> ] and [ correctly.

I won't have the chance to fiddle with this until the weekend, but I wanted
to thank you in advance for tweaking the code this way.  Yay, Patrick! :)

Here's another syntax question...

A portion of my ifhp.conf files looks like this:

  ps_media = %% Set media type
    << /MediaType (\%s{media}) /Policies << /MediaType 2 >> >> setpagedevice

  ps_letter = [ media=Letter ]

This works just fine.  However, for one of the other media types, I want
to do this:

  ps_cardstock = [ media=Card Stock ]

That white space (in "Card Stock") is driving me batty, and I haven't
figured out how to quote it appropriately.  Quotation marks don't work:

  ps_cardstock = [ media="Card Stock" ]

Nor do backslashes:

  ps_cardstock = [ media=Card\ Stock ]

Nor does this ugly hack:

  cardstock = Card Stock
  ps_cardstock = [ media=\%s{cardstock} ]

(In this last case, the \%s{cardstock} doesn't even get expanded.)  I call
this an "ugly hack" because even if it worked, it wouldn't really be a
solution -- there are several places in my ifhp.conf where I want to use a
similar construct.

Is there any way to accomplish this?  If there isn't, my vote would be to
make backslash-escaped whitespace work the way I'm trying to use it above.

Thanks for your help,

-- Lars

-- 
Lars Kellogg-Stedman <[EMAIL PROTECTED]> --> http://www.larsshack.org/


-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to