apache-1.3.20-5 Description of Problem: [root@turmoil piranha]# service httpd start Starting httpd: awk: cmd. line:1: warning: escape sequence `\.' treated as plain `.' [ OK ] How Reproducible: 100% Steps to Reproduce: 1. service httpd start Actual Results: Error message Expected Results: No error message Additional Information: It's an initscript bug, which triggers a warning from the newer gawk package.
Created attachment 23007 [details] Here's the fix
Maybe even better: --- httpd.orig Mon Jul 9 17:48:12 2001 +++ httpd Mon Jul 9 18:06:52 2001 @@ -30,14 +30,12 @@ # Change the major functions into functions. moduleargs() { moduledir=/usr/lib/apache - moduleargs=` /usr/bin/find ${moduledir} -type f -perm -0100 -name "*.so" | awk '{\ gsub(".*/","");\ gsub("^mod_","");\ gsub("^lib","");\ - gsub("\.so$","");\ - print "-DHAVE_" toupper($0)}'` - echo ${moduleargs} + gsub("\\.so$","");\ + print "-DHAVE_" toupper($0)}' } start() { echo -n $"Starting $prog: "
This defect considered MUST-FIX for Fairfax gold-release.
Actually this fix is of "so-so" kind (as is the subject of this report). Instead of abusing automatic conversions by awk of strings into regexps, when strings are used in such role, one should really use regexps and write /\.so$/, and similar for all first arguments of gsub. Such "silent conversion" has its surprises and "\." escape is indeed not valid _in a string_! This form /\.so$/ is valid. See for yourself.
Also see #46221 in public rawhide section.
Ah, thanks for the clarifications on awk syntax. This should be resolved in apache-1.3.20-10, coming soon to Raw Hide.
Works for me.