X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=cp-update;h=d5b2ab24f80e7413ce0b39af4296e185fa9a9c4d;hb=f92ca6d3e60974b73c375e2a72fa6fd02e7820dc;hp=ecac2f7b2ca6e5286b2a0319086a0376b7c31fe7;hpb=9201394a0e44504084dbd627fa3b496ad2f1d9cf;p=carnet-tools-cn.git diff --git a/cp-update b/cp-update index ecac2f7..d5b2ab2 100755 --- a/cp-update +++ b/cp-update @@ -69,7 +69,6 @@ $UsageLong = " -i | --insert-after x Insert after this/matching line. -f | --insert-before x Insert before this/matching line. - -R | --regexp-match Use regexp mode for line matching. - Manipulating block marks: @@ -120,6 +119,7 @@ use constant DO_INSERT => 1; # Operation defaults $InsertRemove = DO_INSERT; $Placement = APPEND_AT_END; +$RegexpMatch = 1; $Comment = '#'; $CommentEnd = ''; $MatchLine = ''; @@ -166,7 +166,7 @@ while (@ARGV) { $Placement = INSERT_ON_TOP; } elsif (/^-R$/ || /^--regexp(?:-match|-mode)?$/) { - $RegexpMatch = 1; + $RegexpMatch = 1; # it's the default } elsif (/^-h$/ || /^--help$/) { die $UsageLong;