bug-a2ps
[Top][All Lists]
Advanced

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

psmandup


From: Tano Michael Fotang
Subject: psmandup
Date: Thu, 28 Jun 2001 09:22:29 +0100

Got the following error running psmandup (see below for possible fix):
 
address@hidden /home/mike]> psmandup -o foo.ps tt.ps
/usr/bin/psmandup: test: 3: unary operator expected
 
FIX(??)
in /usr/bin/psmandup: Replaced the lines
        pagenum=`sed -ne '/^%%Pages:/{
        s/%%Pages: \\([0-9]*\\).*$/\\1/p
        q
        }' $file`
with the line
        pagenum=`grep '^%%Pages: [0-9]\+$' $file |cut -d: -f2`
 
bye.
address@hidden
-------------------------
System info:
psmandup --version
psmandup 2.0 (GNU a2ps 4.12)
sed --version
GNU sed version 3.02
ls -l /bin/sh
lrwxrwxrwx   1 root     root            4 Oct  7  2000 /bin/sh -> bash
bash --version
GNU bash, version 2.04.0(1)-release (i386-suse-linux)
grep --version
grep (GNU grep) 2.4
cut --version
cut (GNU textutils) 2.0



reply via email to

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