From 03b3ce56ad70d0087b0df62a17e9e406250c2207 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 28 May 2004 07:34:54 +0000 Subject: [PATCH] Fix generating sed command from $2. --- mapconv.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mapconv.in b/mapconv.in index 58cc4c7..b4d833d 100644 --- a/mapconv.in +++ b/mapconv.in @@ -28,7 +28,7 @@ echo "# Generated from ${SOURCE}" if [ "$4" = "NOMSB" ] ; then if [ "$3" = 1 ] ; then @CHARMAP_CAT@ $1 \ - | sed -n -e "$2 p" \ + | sed -n -e "$2p" \ | sed -e 's/xa/x2/g' -e 's/xb/x3/g' -e 's/xc/x4/g' \ -e 's/xd/x5/g' -e 's/xe/x6/g' -e 's/xf/x7/g' \ -e 's,]*\)>[ ]*/x\(..\).*$,0x\2 0x\1,' \ @@ -36,7 +36,7 @@ if [ "$4" = "NOMSB" ] ; then | ${LASTFILTER} else @CHARMAP_CAT@ $1 \ - | sed -n -e "$2 p" \ + | sed -n -e "$2p" \ | sed -e 's/xa/x2/g' -e 's/xb/x3/g' -e 's/xc/x4/g' \ -e 's/xd/x5/g' -e 's/xe/x6/g' -e 's/xf/x7/g' \ -e 's,]*\)>[ ]*/x\(..\)/x\(..\).*$,0x\2\3 0x\1,' \ @@ -46,13 +46,13 @@ if [ "$4" = "NOMSB" ] ; then else if [ "$3" = 1 ] ; then @CHARMAP_CAT@ $1 | \ - sed -n -e "$2 p" \ + sed -n -e "$2p" \ | sed -e 's,]*\)>[ ]*/x\(..\).*$,0x\2 0x\1,' \ | sort \ | ${LASTFILTER} else @CHARMAP_CAT@ $1 | \ - sed -n -e "$2 p" \ + sed -n -e "$2p" \ | sed -e 's,]*\)>[ ]*/x\(..\)/x\(..\).*$,0x\2\3 0x\1,' \ | sort \ | ${LASTFILTER} -- 1.7.10.4