sed(1) 'y' command incorrectly ignore last character.

Issue #135 resolved
Takehiko NOZAKI repo owner created an issue

try following:

$  echo -n a | sed 'y/a/b/'

from FreeBSD:

https://svnweb.freebsd.org/base?view=revision&revision=98743 Fix off by one in `y' (transliterate) command which caused the last character of the pattern space not to be examined.

Noticed by: Motoyuki Konno motoyuki@bsdclub.org

Comments (1)

  1. Log in to comment