Bug 69235

Summary: /usr/bin/tr with option -d doesn't works
Product: Base System Reporter: Vitaly Markitantov <ua_vitaly>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.2-CURRENT   
Hardware: Any   
OS: Any   

Description Vitaly Markitantov 2004-07-18 11:40:20 UTC
/usr/bin/tr with option -d  doesn't works as described in manual or standard.
tr -d just sends nothing to stdout

Fix: 

Backout to version of usr.bin/tr before this commit:
http://lists.freebsd.org/pipermail/cvs-src/2004-July/027050.html
How-To-Repeat: cat /COPYRIGHT|tr -d 'A'

You will see empty output
Comment 1 Maxim Konovalov 2004-07-18 11:53:49 UTC
Could you please try a more recent version of tr(1)?  I couldn't
observed the described behaviour on my very -CURRENT system.

-- 
Maxim Konovalov
Comment 2 Maxim Konovalov 2004-07-18 12:54:36 UTC
Added to the audit trail.

-- 
Maxim Konovalov

---------- Forwarded message ----------
Date: Sun, 18 Jul 2004 04:50:12 -0700 (PDT)
From: Vitaly Markitantov <ua_vitaly@yahoo.com>
To: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: bin/69235: /usr/bin/tr with option -d doesn't works

--- Maxim Konovalov <maxim@macomnet.ru> wrote:
> On Sun, 18 Jul 2004, 04:30-0700, Vitaly Markitantov wrote:
>
> > --- Maxim Konovalov <maxim@macomnet.ru> wrote:
> > > Could you please try a more recent version of tr(1)?  I couldn't
> > > observed the described behaviour on my very -CURRENT system.
> > >
> >
> > As i see on http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/tr/tr.c
> > version, that i have
> >
> > $cat /usr/src/usr.bin/tr/tr.c | grep FBSDID
> > __FBSDID("$FreeBSD: src/usr.bin/tr/tr.c,v 1.23 2004/07/09 05:15:46 tjr Exp
> $");
> >
> > is latest in -CURRENT
>
> $ ident tr
> tr:
>      $FreeBSD: src/lib/csu/ia64/crt1.S,v 1.2 2003/07/15 03:50:38 marcel Exp $
>      $FreeBSD: src/usr.bin/tr/cmap.c,v 1.2 2004/07/14 08:36:09 tjr Exp $
>      $FreeBSD: src/usr.bin/tr/cset.c,v 1.3 2004/07/14 08:33:14 tjr Exp $
>      $FreeBSD: src/usr.bin/tr/str.c,v 1.23 2004/07/09 02:08:07 tjr Exp $
>      $FreeBSD: src/usr.bin/tr/tr.c,v 1.23 2004/07/09 05:15:46 tjr Exp $
>
> Please compile tr(1) from the attached archive and make your tests.

This tr from archive runs as needed.
Looks like my version of tr is really outdated. Sorry for noice.

$ ident `which tr`
/usr/bin/tr:
     $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp
$
     $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp
$
     $FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4 2003/10/17 15:43:13 peter
Exp $
     $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.12 2003/01/26 23:14:47 markm Exp
$
     $FreeBSD: src/usr.bin/tr/cmap.c,v 1.1 2004/07/09 02:08:07 tjr Exp $
     $FreeBSD: src/usr.bin/tr/cset.c,v 1.1 2004/07/09 02:08:07 tjr Exp $
     $FreeBSD: src/usr.bin/tr/str.c,v 1.23 2004/07/09 02:08:07 tjr Exp $
     $FreeBSD: src/usr.bin/tr/tr.c,v 1.23 2004/07/09 05:15:46 tjr Exp $


=====
Vitaly Markitantov
+38050-3530077



__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/
Comment 3 Maxim Konovalov freebsd_committer freebsd_triage 2004-07-18 13:02:13 UTC
State Changed
From-To: open->closed

Fixed in recent -CURRENT.