udev-ish replacement for hal-cups-utils?
Tim Waugh
twaugh at redhat.com
Tue Jul 14 06:20:31 PDT 2009
On Tue, 2009-07-14 at 13:22 +0200, Till Kamppeter wrote:
> 2. All shell-unfriendly characters in the device ID are replaced by '_':
>
> Original:
>
> MANUFACTURER:Hewlett-Packard;COMMAND SET:PJL,DW-PCL,ASCII;MODEL:hp
> designjet 130nr (C7791D);CLASS:PRINTER;DESCRIPTION:Hewlett-Packard hp
> designjet 130nr;
>
> What got into /tmp/printer.log:
>
> MANUFACTURER:Hewlett-Packard_COMMAND SET:PJL,DW-PCL,ASCII_MODEL:hp
> designjet 130nr _C7791D__CLASS:PRINTER_DESCRIPTION:Hewlett-Packard hp
> designjet 130nr_
Wow.
I wish I understood why any programs are still trying to munge command
lines by replacing strings like '%p' on their own instead of using
actual environment variables and letting the shell (or wordexp() if you
like) do it correctly. The 'printf' style is useful for constructing
strings of characters, but no good at all at constructing an argument
vector.
In this case we actually need the text of the Device ID completely
unaltered. It's useless otherwise.
Tim.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/devkit-devel/attachments/20090714/3d0a1a15/attachment.pgp
More information about the devkit-devel
mailing list