Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 14:18:14 -0700 (PDT)
From:      Martin.Kaeske@ii.stud.tu-ilmenau.de
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/26824: grep works wrong in apsfilter's SETUP
Message-ID:  <200104242118.f3OLIEa04219@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104242118.f3OLIEa04219>