avoid bug if /bin/sh is dash -- use single quotes around \1

This commit is contained in:
rsc 2006-12-09 22:48:50 +00:00
parent 8904d7bd3e
commit 0df0beb862

View file

@ -20,9 +20,9 @@ then
fi fi
cd $PLAN9 cd $PLAN9
echo " echo '
X ,s;$old(\$|/|});$new\\1;g X ,s;'$old'($|/|});'$new'\1;g
X/'/w X/'"'"'/w
q q
" | sam -d `cat lib/moveplan9.files` >/dev/null 2>&1 ' | sam -d `cat lib/moveplan9.files` >/dev/null 2>&1