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

Bug#81084: boot-floppies: busybox's grep fail's to parse a legal regular expression properly

Package: boot-floppies
Version: 2.2.17
Severity: normal

certain RE's will fail to be matched. this is not an exhaustive list,
and i was unable to find a test suite to test all sorts of RE's.

to reproduce:
% cat grep-test
1/3 yes 0 spaces hi
2/3 yes 2 spaces hi  
    no  illegal character (*)   hi *
    no  illegal character ($)   hi$
    no  illegal character (tab) hi	
    no  illegal characters      hi *$
3/3 yes 1 space  hi 
% grep 'hi *$' < grep-test
1/3 yes 0 spaces hi
2/3 yes 2 spaces hi  
3/3 yes 1 space  hi 
% ./busybox grep 'hi *$' < grep-test
zsh: exit 1     ./busybox grep 'hi *$' < grep-test

work around: everything grep can do, sed can do. a complete sed is included
in boot-floppies.

% sed -ne '/hi *$/p' < grep-test
1/3 yes 0 spaces hi
2/3 yes 2 spaces hi  
3/3 yes 1 space  hi 


-- System Information
Debian Release: 2.2
Kernel Version: Linux osiris 2.2.16 #31337 Wed Sep 20 11:12:26 PDT 2000 i586 unknown

Versions of the packages boot-floppies depends on:
ii  ash            0.3.5-11       NetBSD /bin/sh
ii  bison          1.28-5         A parser generator that is compatible with Y
ii  cslatex        1.2.1          LaTeX for Czech/Slovak typesetting
ii  cspsfonts      0.2.1          Support for Czech and Slovak Type1 fonts in 
ii  debhelper      2.0.86         helper programs for debian/rules
ii  debiandoc-sgml 1.1.44         DebianDoc SGML DTD and formatting tools
ii  dpkg-awk       1.0.0          Gawk script to parse /var/lib/dpkg/{status,a
ii  dpkg-dev       1.6.15         Package building tools for Debian
ii  file           3.28-1         Determines file type using "magic" numbers
ii  flex           2.5.4a-6       A fast lexical analyzer generator.
ii  gawk           3.0.4-4        GNU awk, a pattern scanning and processing l
ii  gcc            2.95.2-13      The GNU C compiler.
ii  gettext        0.10.35-13     GNU Internationalization utilities
ii  libgd1g-dev    1.7.3-0.1      GD Graphics Library (development version).
ii  libi18n-langta 0.12-6         Perl module for dealing with RFC1766-style l
ii  libnewt-dev    0.50-7         Developer's toolkit for newt windowing libra
ii  libpaperg      1.0.3-13.potat Library for handling paper characteristics [
ii  libpopt-dev    1.4-1.1        lib for parsing cmdline parameters - develop
ii  libwww-perl    5.47-1         WWW client/server library for Perl
ii  m4             1.4-10         a macro processing language
ii  make           3.79.1-1.potat The GNU version of the "make" utility.
ii  makedev        2.3.1-46.2     Creates special device files in /dev.
ii  man-db         2.3.16-1       Display the on-line manual.
ii  pointerize     0.4            Internationalization utilities, based on get
ii  recode         3.5-1          Character set conversion utility.
ii  rsync          2.3.2-1.2      fast remote file copy program (like rcp)
ii  slang1-pic     1.3.9-1        The S-Lang programming library, shared libra
ii  tetex-bin      1.0.6-7        teTeX binary files
ii  tetex-extra    1.0-10         extra teTeX library files
ii  zlib1g-dev     1.1.3-5        compression library - development
ii  libc6-pic      2.1.3-13       GNU C Library: PIC archive library
	^^^ (Provides virtual package glibc-pic)
ii  perl-5.004     5.004.05-6     Larry Wall's Practical Extracting and Report
	^^^ (Provides virtual package perl5)

Reply to: