[Ultrapossum-cvs 1210] ultrapossum/init.d 1.4,1.4.2.1,10edit

Back to archive index

Masato Taruishi taru****@users*****
2005年 2月 4日 (金) 17:38:00 JST


===================================================================
RCS file: ultrapossum/init.d/10edit,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- ultrapossum/init.d/10edit	2004/10/31 14:11:07	1.4
+++ ultrapossum/init.d/10edit	2005/02/04 08:38:00	1.4.2.1
@@ -1,11 +1,7 @@
 ULTRAPOSSUMMARK=ULTRAPOSSUM$ULTRAPOSSUM_PROJECT
 
 backslash() {
-  ( IFS="\n"; while read line
-  do
-    echo -n "$line" | sed 's/\\/\\\\/g'
-    echo "\\"
-  done ) 
+  sed 's/\\/\\\\/g' | sed 's/^\(.*\)$/\1\\/'
 }
 
 # replace_vaconf <config> <contents> <id>



Ultrapossum-cvs メーリングリストの案内
Back to archive index