aboutsummaryrefslogtreecommitdiff
path: root/lib/moveplan9.sh
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-12-09 22:48:50 +0000
committerrsc <devnull@localhost>2006-12-09 22:48:50 +0000
commit0df0beb8620d7ae3c119af0d3587800fe8f32c39 (patch)
tree999b344cc49af93cb663de25a23aec013f0edaf6 /lib/moveplan9.sh
parent8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc (diff)
downloadplan9port-0df0beb8620d7ae3c119af0d3587800fe8f32c39.tar.gz
plan9port-0df0beb8620d7ae3c119af0d3587800fe8f32c39.tar.bz2
plan9port-0df0beb8620d7ae3c119af0d3587800fe8f32c39.zip
avoid bug if /bin/sh is dash -- use single quotes around \1
Diffstat (limited to 'lib/moveplan9.sh')
-rw-r--r--lib/moveplan9.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/moveplan9.sh b/lib/moveplan9.sh
index 13105d5e..fbaee271 100644
--- a/lib/moveplan9.sh
+++ b/lib/moveplan9.sh
@@ -20,9 +20,9 @@ then
fi
cd $PLAN9
-echo "
- X ,s;$old(\$|/|});$new\\1;g
- X/'/w
+echo '
+ X ,s;'$old'($|/|});'$new'\1;g
+ X/'"'"'/w
q
-" | sam -d `cat lib/moveplan9.files` >/dev/null 2>&1
+' | sam -d `cat lib/moveplan9.files` >/dev/null 2>&1