Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#514767: lp can print PDF files, but completion offers only PS with relative paths



On Tue, Feb 10, 2009 at 06:54:30PM +0100, martin f krafft wrote:
> While
> 
>   lp /tmp/bla<TAB>
> 
> correctly suggests bla.pdf, doing
> 
>   lp ../bla<TAB>
> 
> from a subdir in /tmp does not work:
> 
> piper:/tmp/orbit-madduck% lp ../                                                                 #10004
> PostScript file
> crontab.XPNG6K/  crontab.rVhVNx/  gpg-oorgbS/      lost+found/      ssh-wzKtD26287/  ssh-yAbsSs4771/

Presumably many printing systems can handle other types of files as well.

Index: Completion/Unix/Command/_lp
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_lp,v
retrieving revision 1.3
diff -u -r1.3 _lp
--- Completion/Unix/Command/_lp	17 May 2001 18:14:18 -0000	1.3
+++ Completion/Unix/Command/_lp	10 Feb 2009 18:24:03 -0000
@@ -47,6 +47,6 @@
     fi
     return 1
   else
-    _ps
+    _pspdf
   fi
 fi



Messages sorted by: Reverse Date, Date, Thread, Author