From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Marcum Newsgroups: gmane.emacs.help Subject: Re: Why can't I use xargs emacs? Date: Tue, 2 Feb 2010 16:35:59 -0500 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1265178340 29707 80.91.229.12 (3 Feb 2010 06:25:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2010 06:25:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 03 07:25:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NcYg6-0001n5-PP for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 07:25:30 +0100 Original-Received: from localhost ([127.0.0.1]:49919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcYg6-000230-5T for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 01:25:30 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail Original-Newsgroups: comp.unix.shell,gnu.emacs.help Original-Followup-To: comp.unix.shell Original-Lines: 15 Original-NNTP-Posting-Host: eauQ+Qtyn6bORkjh/RwF3Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-11 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: news.stanford.edu comp.unix.shell:233692 gnu.emacs.help:176560 X-Mailman-Approved-At: Wed, 03 Feb 2010 01:17:52 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71638 Archived-At: ["Followup-To:" header set to comp.unix.shell.] On 2010-02-02, Adam Funk wrote: > The emacs command can take a list of filename arguments, so why can't > I get xargs to work with it? > > $ find -name '*.txt' |xargs emacs -nw > emacs: standard input is not a tty > > $ grep -rl 'foo' some/path |xargs emacs -nw > emacs: standard input is not a tty > It says: standard input is not a tty. I don't normally use emacs, so there may be a better way to do this, but you could write a function: my_emacs () { emacs "$@" &0 2>&0 ; }