tavoid bug if /bin/sh is dash -- use single quotes around \1 - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0df0beb8620d7ae3c119af0d3587800fe8f32c39
(DIR) parent 8904d7bd3e901786572dfcced8a3ad6fd4b6e7fc
(HTM) Author: rsc <devnull@localhost>
Date: Sat, 9 Dec 2006 22:48:50 +0000
avoid bug if /bin/sh is dash -- use single quotes around \1
Diffstat:
M lib/moveplan9.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/lib/moveplan9.sh b/lib/moveplan9.sh
t@@ -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