[Fai-commit] r4496 - in trunk: bin man

lange at alioth.debian.org lange at alioth.debian.org
Sun Aug 12 13:48:24 UTC 2007


Author: lange
Date: 2007-08-12 13:48:24 +0000 (Sun, 12 Aug 2007)
New Revision: 4496

Modified:
   trunk/bin/ainsl
   trunk/man/ainsl.1
Log:
escape + in pattern


Modified: trunk/bin/ainsl
===================================================================
--- trunk/bin/ainsl	2007-08-12 13:40:36 UTC (rev 4495)
+++ trunk/bin/ainsl	2007-08-12 13:48:24 UTC (rev 4496)
@@ -6,7 +6,7 @@
 # ainsl -- AppendIfNoSuchLine written in Perl
 #
 # This script is part of FAI (Fully Automatic Installation)
-# Copyright (C) 2006 Thomas Lange, lange at informatik.uni-koeln.de
+# Copyright (C) 2006-2007 Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -27,7 +27,7 @@
 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 #*********************************************************************
 
-my $version = "Version 1.0, 24-september-2006";
+my $version = "Version 1.1, 5-august-2007";
 
 use Getopt::Std;
 our ($opt_a,$opt_h,$opt_D,$opt_n,$opt_s,$opt_v);
@@ -38,7 +38,7 @@
   print << "EOF";
 ainsl, AppendIfNoSuchLine written in Perl. $version
 
-   Copyright (C) 2006 by Thomas Lange
+   Copyright (C) 2006-2007 by Thomas Lange
 
 Usage: ainsl [OPTION] FILE LINE [PATTERN]
 
@@ -92,6 +92,7 @@
 # escape '(' and ')' if no pattern was given and line is used
   $pattern =~s/\(/\\(/g;
   $pattern =~s/\)/\\)/g;
+  $pattern =~s/\+/\\+/g;
 }
 
 print "ainsl: newpattern: $pattern\n" if $debug;

Modified: trunk/man/ainsl.1
===================================================================
--- trunk/man/ainsl.1	2007-08-12 13:40:36 UTC (rev 4495)
+++ trunk/man/ainsl.1	2007-08-12 13:48:24 UTC (rev 4496)
@@ -1,5 +1,5 @@
 .\"                                      Hey, EMACS: -*- nroff -*-
-.TH ainsl 1 "2 november 2006" "FAI 3"
+.TH ainsl 1 "12 august 2007" "FAI 3.2"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -26,7 +26,7 @@
 FILE. Then LINE may also contain the anchors '^' and '$' which
 are only treated special at the beginning or end of the pattern and
 are used for matching, not when adding the line. Additionaly,
-following characters are escaped in LINE: ( )
+following characters are escaped in LINE: ( ) +
 
 .SH OPTIONS
 .TP




More information about the Fai-commit mailing list