Date: Fri, 28 Jul 2000 12:09:51 +0900 From: Jun Kuriyama <kuriyama@FreeBSD.org> To: cracauer@FreeBSD.org Cc: Current <FreeBSD-current@FreeBSD.org> Subject: /bin/sh dumps core with here-document of 8bit text Message-ID: <7mr98fq7b4.wl@waterblue.imgsrc.co.jp>
next in thread | raw e-mail | index | archive | help
--Multipart_Fri_Jul_28_12:09:51_2000-1 Content-Type: text/plain; charset=US-ASCII I don't know you are the right person to ask, but I found you committed some of 8bit cleaning in src/bin/sh. Shell script which contains here-document of 8bit text sometimes dumps core. For example, please test this script in 4.1 or -current. #!/bin/sh cat <<EOF [8bit text which contains 0x82 character] EOF And, if I use 'EOF' instead of EOF, it works fine. Do you have any idea about this behavior? After at a glance of sources, 0x82 is used as CTLVAR control character. I think this should be escaped as CTLESC CTLVAR before examining variable substitution whether here-docuement is quoted or not. -- Jun Kuriyama <kuriyama@FreeBSD.org> // FreeBSD Project --Multipart_Fri_Jul_28_12:09:51_2000-1 Content-Type: application/octet-stream; type=gzip Content-Disposition: attachment; filename="8bit.sh.gz" Content-Transfer-Encoding: base64 H4sICEn4gDkAAzhiaXQuc2gAU1bUT8rM0y/O4EpOLFGwsXH1d+NqOtR0hgvEAABiGHPjHQAAAA== --Multipart_Fri_Jul_28_12:09:51_2000-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7mr98fq7b4.wl>