[9343] in Athena Bugs

home help back first fref pref prev next nref lref last post

grep

daemon@ATHENA.MIT.EDU (honor@Athena.MIT.EDU)
Sun May 17 14:55:14 1992

From: honor@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Sun, 17 May 92 14:55:00 EDT


the version of grep in /usr/ucb doesn't do what the man page says it
does:

=====================================================================
m37-318-3  2:50pm
5 /afs/athena.mit.edu/user/h/o/honor: /usr/ucb/grep tom .newsrc.el
m37-318-3  2:50pm
6 /afs/athena.mit.edu/user/h/o/honor: /bin/grep tom .newsrc.el
 nil (1 . 1683)) ("alt.fan.tna" nil (1 . 54)) ("alt.fan.tom-robbins" nil (1 . 119)) ("alt.fan.tom_peterson" nil (1 . 345)) ("alt.fan.wal-greenslade" nil (1 . 3)) ("alt.fandom.cons" nil (1 . 1760)) ("alt.fandom.misc" nil (1 . 194)) ("alt.fishing" nil (1 . 5041)) ("alt.flack" nil (1 . 25)) ("alt.flame" nil (1 . 48178)) ("alt.folklore.college" nil (1 . 1002)) ("alt.folklore.computers" nil (1 . 22974)) ("alt.folklore.science" nil (1 . 1195)) ("alt.folklore.urban" nil (1 . 36855)) ("alt.food.cocacola" nil (1 . 191)) ("alt.food.mcdonalds" nil (1 . 101)) ("alt.fractals" nil (1 . 2600)) ("alt.fractals.pictures" nil (1 . 616)) ("alt.freedom.of.information.act" nil (1 . 35)) ("alt.galactic-guide" nil (1 . 419)) ("alt.games.gb" nil (1 . 1844)) ("alt.games.torg" nil (1 . 1835)) ("alt.games.xtrek" nil(1 . 4140)) ("alt.good.news" nil (1 . 984)) ("alt.gopher" nil (1 . 260)) ("alt.gorets" nil (1 . 111)) ("alt.gothic" nil (1 . 1043)) ("alt.gourmand" nil (1 . 3)) ("alt.graphics.pixutils" nil !
(1 . 2938)) ("alt.guitar" nil (1
nil (1 . 3953)) ("comp.terminals.bitgraph" nil (1 . 12)) ("comp.terminals.tty5620" nil (1 . 188)) ("comp.text" nil (1 . 9956)) ("comp.text.desktop" nil (1 . 2035)) ("comp.text.frame" nil (1 . 1365)) ("comp.text.interleaf" nil (1 . 244)) ("comp.text.sgml" nil (1 . 816)) ("comp.text.tex" nil (1 . 15747)) ("comp.theory" nil (1 . 4661)) ("comp.theory.cell-automata" nil (1 . 1012)) ("comp.theory.dynamic-sys" nil (1 . 804)) ("comp.theory.info-retrieval" nil (1 . 5)) ("comp.theory.self-org-sys" nil (1 . 234)) ("comp.unix" nil (1 . 821)) ("comp.unix.admin" nil (1 . 5791)) ("comp.unix.aix" nil (1 . 12223)) ("comp.unix.amiga" nil (1 . 3025))("comp.unix.aux" nil (1 . 7443)) ("comp.unix.bsd" nil (1 . 459)) ("comp.unix.cray" nil (1 . 667)) ("comp.unix.internals" nil (1 . 4717)) ("comp.unix.large" nil(1 . 495)) ("comp.unix.misc" nil (1 . 3942)) ("comp.unix.msdos" nil (1 . 1138))("comp.unix.programmer" nil (1 . 5035)) ("comp.unix.questions" nil (1 . 41893))("comp.unix.shell" nil (1 . 5085)!
) ("comp.unix.sysv286" nil (1
=====================================================================

/usr/ucb/grep ignores a match if the line that it's in is too long.
i don't think it should.  in addition, the man page says:

   Restrictions
     Lines are limited to 256 characters; longer lines are truncated.

this isn't happening.  it just doesn't print them.


			Andrew Cassidy
			honor@Athena.MIT.EDU

home help back first fref pref prev next nref lref last post