From owner-freebsd-current Tue Dec 7 5:49:29 1999 Delivered-To: freebsd-current@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id 419E914D61 for ; Tue, 7 Dec 1999 05:48:45 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id TAA77173; Tue, 7 Dec 1999 19:48:08 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Date: Tue, 7 Dec 1999 19:48:08 +0600 (NS) From: Max Khon To: Sheldon Hearn Cc: current@FreeBSD.ORG Subject: Re: grep -a (-stable) In-Reply-To: <71749.944573815@axl.noc.iafrica.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Tue, 7 Dec 1999, Sheldon Hearn wrote: > > it is not possible to make short equivalent for old grep -a option > > (as in grep 2.3 -a is used for other purposes). > > Que? I've used grep -a since the update to grep 2.3 and haven't > noticed any strange behaviour from the -a option. > > You wanna explain what's going on? -stable grep (2.0 + FreeBSD-specific features) uses -a to skip binary files at all. Very useful in such context as: vi `grep -aRl foo .` in -current both 'grep -al' and 'grep -l' print names of binary files and there is no way to tell grep to skip them /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message