🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4092

Re: Why can't I use xargs emacs?

#4092
From: Bit Twister
Date: Tue, 02 Feb 2010 21:14
13 lines
1521 bytes
On Tue, 02 Feb 2010 20:22:17 +0000, 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


Maybe it's the -nw switch. Try
      find -name '*.txt' |xargs emacs
Technical Details
Message-ID: <slrnhmh5di.8hb.BitTwister@wb.home.test>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
References: <p4em37xiau.ln2@news.ducksburg.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 39ae015015,546aec423372e37b
X-Google-Attributes: gid39ae015015,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Bit Twister <BitTwister@mouse-potato.com>
Newsgroups: comp.unix.shell,gnu.emacs.help
Subject: Re: Why can't I use xargs emacs?
Date: Tue, 2 Feb 2010 21:14:26 +0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <slrnhmh5di.8hb.BitTwister@wb.home.test>
References: <p4em37xiau.ln2@news.ducksburg.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Feb 2010 21:14:26 +0000 (UTC)
Injection-Info: feeder.eternal-september.org; posting-host="kP1Sn6br755Ol+l3zv84Sg";
 logging-data="27546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lBUhczS3/2vdjPEQAMrbQ6VD/N4CxQCE="
User-Agent: slrn/0.9.9p1 (Linux)
Cancel-Lock: sha1:8Es6592GK/IHAcihMQRK4Uk5+h0=