[BusyBox 0005024]: egrep not working at all

bugs at busybox.net bugs at busybox.net
Fri Sep 19 22:03:24 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=5024 
====================================================================== 
Reported By:                nuclearcat
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   5024
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             09-17-2008 11:52 PDT
Last Modified:              09-19-2008 15:03 PDT
====================================================================== 
Summary:                    egrep not working at all
Description: 
I notice that egrep in my scripts in 1.12.0 not working, and in 1.11.2 it
works fine.

To reproduce:

defaulthost ~ # busybox
BusyBox v1.12.0 (2008-09-11 13:04:04) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, addgroup, adduser, adjtimex, arping, ash, awk, basename,
bbconfig, bunzip2, bzcat, bzip2, cal, cat, chat, chgrp, chmod, chown,
        chpasswd, chpst, chroot, chvt, cksum, clear, cmp, comm, cp, crond,
crontab, cryptpw, cut, date, dd, deallocvt, delgroup, deluser, depmod,
        df, dhcprelay, diff, dirname, dmesg, dos2unix, du, dumpleases,
echo, egrep, env, envdir, envuidgid, ether-wake, expand, expr,
fakeidentd,
        false, fbset, fbsplash, fdflush, fdisk, fgrep, find, fold, free,
freeramdisk, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip,
        halt, hd, head, hexdump, hostid, hostname, hwclock, id, ifconfig,
inetd, init, insmod, install, kill, killall, killall5, klogd, last,
        length, less, linux32, linux64, linuxrc, ln, logger, login,
logname, losetup, ls, lsmod, makedevs, md5sum, mdev, mesg, microcom,
mkdir,
        mkfifo, mknod, mktemp, modprobe, more, mount, mountpoint, mv,
nameif, nc, nice, nmeter, nohup, nslookup, od, openvt, passwd, patch,
        pgrep, pidof, pipe_progress, pkill, poweroff, printenv, printf,
ps, pwd, rdate, readahead, readlink, readprofile, realpath, reboot,
        renice, reset, resize, rm, rmdir, rmmod, route, rtcwake,
run-parts, runlevel, runsv, runsvdir, rx, sed, seq, setarch, setconsole,
setlogcons,
        setsid, setuidgid, sh, sha1sum, sleep, softlimit, sort, split,
start-stop-daemon, stat, strings, stty, su, sum, sv, svlogd, swapoff,
        swapon, switch_root, sync, sysctl, syslogd, tail, tar, tee,
telnet, telnetd, test, time, top, touch, tr, traceroute, true, tty,
ttysize,
        udhcpc, udhcpd, umount, uname, unexpand, uniq, unix2dos, uptime,
usleep, uudecode, uuencode, vconfig, watch, watchdog, wc, wget, which,
        who, whoami, xargs, yes, zcat, zcip

defaulthost ~ # cat test
config
defaulthost ~ # egrep "(config|lost\+found|kernel|`uname -r`.tgz)" <test
defaulthost ~ # Connection to 194.146.153.99 closed.
rich ~ # ssh root at 194.146.153.146
GlobalOS 2.1 http://www.globalos.info/
Xpernet ~ # busybox
BusyBox v1.11.2 (2008-09-17 16:37:34) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as!

Currently defined functions:
        [, [[, addgroup, adduser, adjtimex, arping, ash, awk, basename,
bbconfig, bunzip2, bzcat, bzip2, cal, cat, chat, chgrp, chmod, chown,
        chpasswd, chpst, chroot, chvt, cksum, clear, cmp, comm, cp, crond,
crontab, cryptpw, cut, date, dd, deallocvt, delgroup, deluser, depmod,
        df, dhcprelay, diff, dirname, dmesg, dos2unix, du, dumpleases,
echo, egrep, env, envdir, envuidgid, ether-wake, expand, expr,
fakeidentd,
        false, fbset, fbsplash, fdflush, fdisk, fgrep, find, fold, free,
freeramdisk, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip,
        halt, hd, head, hexdump, hostid, hostname, hwclock, id, ifconfig,
inetd, init, insmod, install, kill, killall, killall5, klogd, last,
        length, less, linux32, linux64, linuxrc, ln, logger, login,
logname, losetup, ls, lsmod, makedevs, md5sum, mdev, mesg, microcom,
mkdir,
        mkfifo, mknod, mktemp, modprobe, more, mount, mountpoint, mv,
nameif, nc, nice, nmeter, nohup, nslookup, od, openvt, passwd, patch,
        pgrep, pidof, pipe_progress, pkill, poweroff, printenv, printf,
ps, pwd, rdate, readahead, readlink, readprofile, realpath, reboot,
        renice, reset, resize, rm, rmdir, rmmod, route, rtcwake,
run-parts, runlevel, runsv, runsvdir, rx, sed, seq, setarch, setconsole,
setlogcons,
        setsid, setuidgid, sh, sha1sum, sleep, softlimit, sort, split,
start-stop-daemon, stat, strings, stty, su, sum, sv, svlogd, swapoff,
        swapon, switch_root, sync, sysctl, syslogd, tail, tar, tee,
telnet, telnetd, test, time, top, touch, tr, traceroute, true, tty,
ttysize,
        udhcpc, udhcpd, umount, uname, unexpand, uniq, unix2dos, uptime,
usleep, uudecode, uuencode, vconfig, watch, watchdog, wc, wget, which,
        who, whoami, xargs, yes, zcat, zcip

Xpernet ~ # cat test
config
Xpernet ~ # egrep "(config|lost\+found|kernel|`uname -r`.tgz)" <test
config
Xpernet ~ #  
====================================================================== 

---------------------------------------------------------------------- 
 vda - 09-19-08 14:28  
---------------------------------------------------------------------- 
Does attached a.patch help? 

---------------------------------------------------------------------- 
 nuclearcat - 09-19-08 15:03  
---------------------------------------------------------------------- 
Yes, it fixes the problem. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-17-08 11:52  nuclearcat     New Issue                                    
09-17-08 11:52  nuclearcat     Status                   new => assigned     
09-17-08 11:52  nuclearcat     Assigned To               => BusyBox         
09-19-08 14:28  vda            File Added: a.patch                          
09-19-08 14:28  vda            Note Added: 0011674                          
09-19-08 15:03  nuclearcat     Note Added: 0011684                          
======================================================================




More information about the busybox-cvs mailing list