From: handa Date: Fri, 28 May 2004 07:34:54 +0000 (+0000) Subject: Fix generating sed command from $2. X-Git-Tag: REL-1-1-0~116 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b3ce56ad70d0087b0df62a17e9e406250c2207;p=m17n%2Fm17n-db.git Fix generating sed command from $2. --- 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}