Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/sets Awk prefers regex escapes to look like \\ inste...



details:   https://anonhg.NetBSD.org/src/rev/9ec51d2572df
branches:  trunk
changeset: 553463:9ec51d2572df
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Fri Oct 17 09:51:24 2003 +0000

description:
Awk prefers regex escapes to look like \\ instead of \. Go figure.
This patch squashes hundreds of annoying warning messages:

awk: cmd. line:1: warning: escape sequence `\.' treated as plain `.'

diffstat:

 distrib/sets/makeplist |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0ce7c076e9c3 -r 9ec51d2572df distrib/sets/makeplist
--- a/distrib/sets/makeplist    Fri Oct 17 09:42:42 2003 +0000
+++ b/distrib/sets/makeplist    Fri Oct 17 09:51:24 2003 +0000
@@ -101,7 +101,7 @@
 dfilename=/tmp/makeplist.dirs.$$ 
 
 list_set_files $setname | \
-env PLISTPKG=$pkgname awk -- '/^#/ { next } $2 == ENVIRON["PLISTPKG"] {sub("^\./", "", $1); print $1}' | sort -u > $filename
+env PLISTPKG=$pkgname awk -- '/^#/ { next } $2 == ENVIRON["PLISTPKG"] {sub("^\\./", "", $1); print $1}' | sort -u > $filename
 
 SELECTDIRS="-maxdepth 0 -type d"
 SELECTNONDIRS="-maxdepth 0 ! -type d"



Home | Main Index | Thread Index | Old Index