Revision: 46658
          http://brlcad.svn.sourceforge.net/brlcad/?rev=46658&view=rev
Author:   brlcad
Date:     2011-09-10 01:38:52 +0000 (Sat, 10 Sep 2011)
Log Message:
-----------
the $ anchor matches a newline at end of file, so use the \z metasymbol instead 
to match the true end of string, which with 0777 should be the EOF.

Modified Paths:
--------------
    brlcad/trunk/sh/ws.sh

Modified: brlcad/trunk/sh/ws.sh
===================================================================
--- brlcad/trunk/sh/ws.sh       2011-09-10 01:23:02 UTC (rev 46657)
+++ brlcad/trunk/sh/ws.sh       2011-09-10 01:38:52 UTC (rev 46658)
@@ -263,7 +263,7 @@
                if [ "x$WS_PROGRESS" = "xyes" ] ; then
                    printf "e"
                fi
-               perl -0777 -pi -e 's/([^\n])$/\1\n/' "$file.ws.new"
+               perl -0777 -pi -e 's/([^\n])\z/\1\n/' "$file.ws.new"
                ;;
            x[fF])
                # convert embedded tabs to spaces

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to