Professional Web Applications Themes

strange behaviour : grep -i --colour "" - FreeBSD

hello, i've just found out that while 'grep -i ""' and 'grep --colour ""' behave as expected (by myself), running 'grep -i --colour ""' results in very strange behaviour - grep consumes all available cpu and, based on its input and terminal type, its output is definitely not what it should be. is this a known issue pls (i couldn't find anything about it) or am i just missing something ? regards, martin ps: observed on freebsd 5.3r-p5...

  1. #1

    Default strange behaviour : grep -i --colour ""

    hello,

    i've just found out that while 'grep -i ""' and 'grep --colour ""'
    behave as expected (by myself), running 'grep -i --colour ""' results in
    very strange behaviour - grep consumes all available cpu and, based on
    its input and terminal type, its output is definitely not what it should be.

    is this a known issue pls (i couldn't find anything about it) or am i
    just missing something ?

    regards,

    martin

    ps: observed on freebsd 5.3r-p5
    martinko Guest

  2. #2

    Default Re: strange behaviour : grep -i --colour ""

    martinko <sk> writes:
     

    I can't reproduce it on yesterday's -STABLE...
    Lowell Guest

  3. #3

    Default re: strange behaviour : grep -i --colour ""

    hi,

    i've just prepared a typescript for you, see below. note that the
    original generated file is 37984604 bytes.
    my system is:
    $ uname -a
    FreeBSD mb-aw1n-bsd 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #5: Mon Feb 14
    19:45:04 CET 2005 rootmb-aw1n-bsd:/usr/obj/usr/src/sys/MB-AW1N i386

    do you have any suggestions as what i should do pls?

    cheers,

    martin

    --

    Script started on Fri Mar 18 18:34:17
    2005
    You have
    mail.
    mb-aw1n-bsd:/root#

    mb-aw1n-bsd:/root# grep -i
    ""
    q

    q

    a

    a

    z

    z

    ^D..mb-aw1n-bsd:/root# grep --colour
    ""
    q

    q

    a

    a

    z

    z

    ^D..mb-aw1n-bsd:/root# grep -i --colour
    ""
    q

    ..[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[
    01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01
    ;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;3
    1m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m
    ..[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[
    00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00
    m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.
    [01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[0
    1;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;
    31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31
    m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.
    [00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[0

    <..SNIPPED..>

    [00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[0
    0m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m
    ..[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[
    01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01
    ;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;3
    1m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m
    ..[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[
    00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00
    m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.
    [01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[0
    1;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;
    31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31
    m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.
    [00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[0
    0m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m
    ..[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[
    01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[00m.[01;31m.[0^C

    mb-aw1n-bsd:/root#

    mb-aw1n-bsd:/root#
    ^D..exit


    Script done on Fri Mar 18 18:35:15
    2005

    martinko Guest

Similar Threads

  1. "Highlight Colour" button becomes Disabled
    By DrQuinn in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: October 27th, 03:36 PM
  2. Setting "URL Behaviour" to "Dynamic" has no effect
    By Hans Malherbe in forum ASP.NET Web Services
    Replies: 1
    Last Post: June 13th, 08:44 AM
  3. attach "Random Movement and Rotation"- behaviour to puppetSprite
    By forums.macromedia.com in forum Macromedia Director Basics
    Replies: 4
    Last Post: July 3rd, 12:26 AM
  4. Strange behaviour with "do" and Perl 5.8
    By Steve D in forum PERL Miscellaneous
    Replies: 0
    Last Post: August 26th, 10:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139