Red Hat Bugzilla – Bug 56993
undefined function delim() in create_printcap
Last modified: 2007-04-18 12:38:31 EDT
Description of Problem:
create_printcap not working.
Version-Release number of selected component (if applicable):
[root@kadhome yp]# cat /etc/printcap
[root@kadhome yp]# make printcap
awk: /usr/lib/yp/create_printcap:24: (FILENAME=- FNR=17) fatal: function
`delim' not defined
failed to send 'clear' to local ypserv: RPC: Program not registered
Steps to Reproduce:
In /var/lib/yp/create_printcap, change this string:
"suffix = delim(++count[name])"
to this string:
"suffix = delim (++count[name])"
Notice that in the version as supplied, the lack of a space between the variable
name "delim" and the expression "(++count[name])" causes gawk to treat the right
hand side as a function invocation rather than as a concatenation, as was
clearly intended by the author.
Seismological Systems Manager
Department of Earth Sciences
Alexander Murray Building - Room ER-4063
Memorial University of Newfoundland
St. John's, Newfoundland
Canada A1B 3X5
Fixed in 2.2-2 or higher.
Thanks a lot for this good bug-report,
Florian La Roche