allow slashes in file names
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 22 Oct 1982 14:31:39 +0000 (06:31 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 22 Oct 1982 14:31:39 +0000 (06:31 -0800)
SCCS-vsn: usr.bin/vgrind/vgrind.sh 1.8

usr/src/usr.bin/vgrind/vgrind.sh

index c85b398..7332600 100644 (file)
@@ -1,3 +1,6 @@
+#! /bin/csh
+#
+#      @(#)vgrind.sh   1.8     (Berkeley)      %G%
 #
 # vgrind
 #
 #
 # vgrind
 #
@@ -68,7 +71,9 @@ endif
 if (-r index) then
     echo > nindex
     foreach i ($files)
 if (-r index) then
     echo > nindex
     foreach i ($files)
-       echo "/ $i /d" >> nindex
+       #       make up a sed delete command for filenames
+       #       being careful about slashes.
+       echo "? $i ?d" | sed -e "s:/:\\/:g" -e "s:?:/:g" >> nindex
     end
     sed -f nindex index >xindex
     if ($f == 'filter') then
     end
     sed -f nindex index >xindex
     if ($f == 'filter') then