Date: Sat, 10 Apr 2004 00:51:06 +0200 From: Roman Neuhauser <neuhauser@chello.cz> To: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: /bin/sh bug? munges here-doc eof markers Message-ID: <20040409225106.GB6183@isis.wad.cz>
next in thread | raw e-mail | index | archive | help
Why does /bin/sh insert 0x81, or 129, or SYNBASE, before every non-word character in here-doc delimiters? It grows 'END-of-vietnamese/x-unikey/files/patch-src::unikey-gtk::Makefile.am' which is 69 characters, well below EOFMARKLEN (79) to 80 characters. Should I file a PR? roman@isis ~/tmp 1048:0 > sh shar 2>&1 >&- |head -1|hd -c 00000000 37 39 3a 20 88 45 4e 44 81 2d 6f 66 81 2d 76 69 |79: .END.-of.-vi| 0000000 7 9 : 210 E N D 201 - o f 201 - v i 00000010 65 74 6e 61 6d 65 73 65 81 2f 78 81 2d 75 6e 69 |etnamese./x.-uni| 0000010 e t n a m e s e 201 / x 201 - u n i 00000020 6b 65 79 81 2f 66 69 6c 65 73 81 2f 70 61 74 63 |key./files./patc| 0000020 k e y 201 / f i l e s 201 / p a t c 00000030 68 81 2d 73 72 63 81 3a 81 3a 75 6e 69 6b 65 79 |h.-src.:.:unikey| 0000030 h 201 - s r c 201 : 201 : u n i k e y 00000040 81 2d 67 74 6b 81 3a 81 3a 4d 61 6b 65 66 69 6c |.-gtk.:.:Makefil| 0000040 201 - g t k 201 : 201 : M a k e f i l 00000050 65 2e 61 6d 0a |e.am.| 0000050 e . a m \n 0000055 -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040409225106.GB6183>