as a modifier, "done from a moving vehicle," by 1989 (originally of shootings), from the verbal phrase; see drive (v.) + by (prep.).
Entries linking to drive-by
drive v.
Old English drifan "to compel or urge to move, impel in some direction or manner; to hunt (deer), pursue; to rush against" (class I strong verb; past tense draf, past participle drifen), from Proto-Germanic *dreibanan (source also of Old Frisian driva"I lead, impel, drive (away)," Old Saxon driban, Dutch drijven, Old High German triban, German treiben, Old Norse drifa, Gothic dreiban "to drive"), perhaps from PIE root *dhreibh- "to drive, push," but it may be a Germanic isolated word.
Used in Old English of nails, ships, plows, vehicles, cattle; in Middle English of bargains. Meaning "compel or incite to action or condition of any kind" (drive mad) is by late 12c. Sense of "work with energy, labor actively" is c. 1200; that of "aim a blow" is by early 14c.. Transitive meaning "convey (someone) in a carriage," later an automobile, is from 1660s. The original sense of "pushing from behind" was altered in Modern English by application to automobiles. Related: Driving.
MILLER: "The more you drive, the less intelligent you are." ["Repo Man," 1984]
by prep., adv.
Old English be- (unstressed) or bi (stressed) "near, in, by, during, about," from Proto-Germanic *bi "around, about," in compounds often merely intensive (source also of Old Saxon and Old Frisian bi "by, near," Middle Dutch bie, Dutch bij, German bei "by, at, near," Gothic bi "about"), from PIE *bhi, reduced form of root *ambhi- "around."
As an adverb by c. 1300, "near, close at hand."
OED (2nd ed. print) has 38 distinct definitions of it as a preposition. Originally an adverbial particle of place, which sense survives in place names (Whitby, Grimsby, etc., also compare rudesby). Elliptical use for "secondary course" was in Old English (opposed to main, as in byway, also compare by-blow "illegitimate child," 1590s, Middle English loteby "a concubine," from obsolete lote "to lurk, lie hidden"). This also is the sense of the second by in the phrase by the by (1610s).
By the way literally means "along the way" (c. 1200), hence "in passing by," used figuratively to introduce a tangential observation ("incidentally") by 1540s. To swear by something or someone is in Old English, perhaps originally "in the presence of." Phrase by and by (early 14c.) originally meant "one by one," with by apparently denoting succession; modern sense of "before long" is from 1520s.
By and large "in all its length and breadth" (1660s) originally was nautical, "sailing to the wind and off it," hence "in one direction then another;" from nautical expression large wind, one that crosses the ship's line in a favorable direction.