NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/48880: new sed(1) is broken



>Number:         48880
>Category:       bin
>Synopsis:       new sed(1) is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 07 06:20:00 +0000 2014
>Originator:     Ryo ONODERA
>Release:        NetBSD 6.99.43
>Organization:
        
>Environment:
        
        
System: NetBSD tellurium.elements.tetera.org 6.99.43 NetBSD 6.99.43 (DTRACE2) 
#31: Fri Jun 6 17:28:03 JST 2014 
ryo_on%tellurium.elements.tetera.org@localhost:/usr/obj/amd64/sys/arch/amd64/compile/DTRACE2
 amd64
Architecture: x86_64
Machine: amd64
>Description:
With newly imported sed(1), all GNU Autotoolized application's man page
installation fails.

The following is test pattern.

$ cat sed_test.sh
sed -e 'n;p;h;s,.*\.,,;x' \
      -e 's,\.1$,,;G;s,\n,.,' | \
{ \
while read file ; do \
    echo "$file" || exit $?; \
done; \
}

$ cat test.txt
sed.1
awk.1
perl.1

With new sed(1),
$ cat test.txt | sh sed_test.sh
sed.1
awk.1
awk1
perl.1

With new sed(1),
$ cat test.txt| PATH=./:$PATH sh 140607-sed_tesh.sh (nbsed is in ./)
sed.1
awk.1
awk.1
perl.1

With pkgsrc/textproc/gsed,
Here is the result.
sed.1
awk.1
awk.1
perl.1
        
>How-To-Repeat:
See above.
        
>Fix:
        
I have no idea. Please fix this.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index