--- xmlto.in.orig 2003-10-24 14:25:44.644458792 +0800 +++ xmlto.in 2003-10-24 14:26:03.218635088 +0800 @@ -97,7 +97,7 @@ if [ -x /usr/bin/locale ] then # For paper sizes we know about, specify them. - h=$(locale LC_PAPER 2>/dev/null | head -1) + h=$(locale LC_PAPER 2>/dev/null | head -n 1) if [ "$h" = "297" ] then papertype=A4 @@ -248,7 +248,7 @@ fi # Decide what source format this is. Default to DocBook. -rootel=$(head -2 "$INPUT_FILE" | \ +rootel=$(head -n 2 "$INPUT_FILE" | \ sed -e 's/^]*?>//g' -e 's/^]*>//g' -e 's/^<\([^ ]*\).*$/\1/') case $(echo $rootel) in fo:root)