bug-a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a2ps wierdness


From: Kreider, Carl
Subject: a2ps wierdness
Date: Tue, 23 Jan 2001 14:03:37 -0500

Sirs:

I am not sure you call this a bug, but is is from my perspective.
"psset -d" will not work with our HP. The reason is that, since
the option parsing

  (pagedevices="$pagedevices;Duplex:true;Tumble:false")

leaves a leading ';', the loop to generate the ps code generates
a blank entry which make the HP unhappy:

  %%BeginFeature: * 
    (<<) cvx exec / () cvx exec (>>) cvx exec
    systemdict /setpagedevice get exec
  %%EndFeature

My fix simply sed's off the leading ';':

  *** psset.old   Tue Jan 23 13:29:24 2001
  --- psset       Tue Jan 23 13:28:11 2001
  ***************
  *** 206,211 ****
  --- 206,212 ----
    fi
  
    # Prepare the PostScript snippet we plan to insert if needed
  + pagedevices=`echo $pagedevices |sed 's/^;//'`
    pspagedevice=
    saved_IFS=$IFS
    IFS=";"

-- 
Carl Kreider
 aka
  address@hidden address@hidden address@hidden
=============================================================
 "NT disaster recovery isn't all that difficult.  Just follow
 the simple instructions that come with the Linux CD."
                                               Anonymous
=============================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]