From owner-freebsd-ports Tue Apr 24 14:20:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 60E3D37B42C for ; Tue, 24 Apr 2001 14:20:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3OLK1a04424; Tue, 24 Apr 2001 14:20:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6699D37B423 for ; Tue, 24 Apr 2001 14:18:14 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3OLIEa04219; Tue, 24 Apr 2001 14:18:14 -0700 (PDT) (envelope-from nobody) Message-Id: <200104242118.f3OLIEa04219@freefall.freebsd.org> Date: Tue, 24 Apr 2001 14:18:14 -0700 (PDT) From: Martin.Kaeske@ii.stud.tu-ilmenau.de To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/26824: grep works wrong in apsfilter's SETUP Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26824 >Category: ports >Synopsis: grep works wrong in apsfilter's SETUP >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 24 14:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Martin Kaeske >Release: FreeBSD-4.3-STABLE i386 >Organization: >Environment: System: FreeBSD walnut.hh59.org 4.3-STABLE FreeBSD 4.3-STABLE #0 Sat Apr 21 20:15:43 CEST 2001 martin@walnut.hh59.org:/usr/src/sys/compile/BSD4_3 i386 >Description: I did a cvsup to 4.3-STABLE and tried to compile apsfilter-5.4.2. The problem is that the SETUP-script doesn't work properly, it doesn't show the different printer while selecting the apropriate driver. I found out that there are some problems with grep and especially the '-v' option. In line 365 SETUP tries to find out how many printer are supported, by let say the gs-driver - MAXNO=`grep -c -v "^#" $PRINTER_LIST, where $PRINTER_LIST holds the file containing supported printer. The problem is that MAXNO is always "0" no matter what file. Furthermore line 390 fails w/o $PRINTER_LIST. What confused me is, that "grep -v" works fine on the shell prompt or another shell-script >How-To-Repeat: run the SETUP-script select driver-selection choose the gs-driver >Fix: No idea :-( Maybe a /bin/sh error Maybe a similar problem to PR#ports/24455 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message