Subject: lib/17954: invalid conversion in libedit (extra 0x0d)
To: None <gnats-bugs@gnats.netbsd.org>
From: SAITOH Masanobu <masanobu@iij.ad.jp>
List: netbsd-bugs
Date: 08/16/2002 18:42:17
>Number: 17954
>Category: lib
>Synopsis: invalid conversion in libedit (extra 0x0d)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 16 02:43:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: SAITOH Masanobu
>Release: many relases
>Organization:
IIJ
>Environment:
System: NetBSD h053n005.iij.ad.jp 1.5.3 NetBSD 1.5.3 (C6451) #27: Mon Jul 29 15:19:58 JST 2002 masanobu@h053n005.iij.ad.jp:/var/sources/netbsd-1-5/src/sys/arch/i386/compile/C6451 i386
Architecture: i386
Machine: i386
>Description:
"set -E" and "set -V" adds one extra "0x0d"
example:
mk7m(masanobu){1}% sh
$ export SHELL=/bin/sh
$ script
Script started, output file is typescript
$ (enter key)
$ set -E
$ (enter key)
$ exit
Script done, output file is typescript
$ exit
mk7m(masanobu){11}% less typescript
Script started on Fri Aug 16 18:27:39 2002
$
$ set -E
$ ^M
$ exit^M
mk7m(masanobu){12}% hexdump -C typescript
00000000 53 63 72 69 70 74 20 73 74 61 72 74 65 64 20 6f |Script started o|
00000010 6e 20 46 72 69 20 41 75 67 20 31 36 20 31 38 3a |n Fri Aug 16 18:|
00000020 32 37 3a 33 39 20 32 30 30 32 0a 24 20 0d 0a 24 |27:39 2002.$ ..$|
00000030 20 73 65 74 20 2d 45 0d 0a 24 20 0d 0d 0a 24 20 | set -E..$ ...$ |
********
00000040 65 78 69 74 0d 0d 0a 0a 53 63 72 69 70 74 20 64 |exit....Script d|
********
00000050 6f 6e 65 20 6f 6e 20 46 72 69 20 41 75 67 20 31 |one on Fri Aug 1|
00000060 36 20 31 38 3a 32 37 3a 35 31 20 32 30 30 32 0a |6 18:27:51 2002.|
00000070
mk7m(masanobu){13}%
>How-To-Repeat:
set -E or set -V
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted: