From owner-freebsd-questions Sat Jun 1 14:23: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web13206.mail.yahoo.com (web13206.mail.yahoo.com [216.136.174.191]) by hub.freebsd.org (Postfix) with SMTP id 50F1137B404 for ; Sat, 1 Jun 2002 14:22:58 -0700 (PDT) Message-ID: <20020601212257.62557.qmail@web13206.mail.yahoo.com> Received: from [63.195.80.23] by web13206.mail.yahoo.com via HTTP; Sat, 01 Jun 2002 14:22:57 PDT Date: Sat, 1 Jun 2002 14:22:57 -0700 (PDT) From: Ker Lutyn Subject: bug found in apsfilter - uses installer's shell for filter? To: freebsd-questions@FreeBSD.ORG In-Reply-To: <20020601213359.E8663-100000@small.pukruppa.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Okay, I discovered the existence of /var/spool/lpd/lp/log. It records the following error for every print attempt: /etc/apsfilter/basedir/bin/apsfilter: line 1220: syntax error near unexpected token `|}' /etc/apsfilter/basedir/bin/apsfilter: line 1220: `${PS_NUP:+psnup -q -$PS_NUP ${LANDSCAPE:+$PSNUP_ROTATE}|} \' So I checked out /etc/apsfilter/basedir/bin/apsfilter and discovered this at the top of the file: #! /usr/local/bin/bash I installed this as 'su toor', which uses bash. Certainly the script shouldn't take the installer's shell for its own filter?! In any case, I replaced this with /bin/sh, and voila! everything works. __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message