🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #4098

Re: Why can't I use xargs emacs?

#4098
From: hymie!
Date: Wed, 03 Feb 2010 14:12
18 lines
1445 bytes
In our last episode, the evil Dr. Lacto had captured our hero,
  Adam Funk <a24061@ducksburg.com>, who said:
>
>
>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

Are you missing the . in your find command on purpose?

What's wrong with
emacs -nw `find  . -name '*.txt'`
?

--hymie!    http://lactose.homelinux.net/~hymie    hymie@lactose.homelinux.net
-------------------------------------------------------------------------------
Technical Details
Message-ID: <Vufan.39557$BV.3195@newsfe07.iad>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe07.iad.POSTED!a90f4aa1!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!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe07.iad.POSTED!a90f4aa1!not-for-mail
Newsgroups: comp.unix.shell,gnu.emacs.help
Subject: Re: Why can't I use xargs emacs?
References: <p4em37xiau.ln2@news.ducksburg.com>
Organization: Eric Conspiracy Secret Labs
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
From: hymie@lactose.homelinux.net (hymie!)
Originator: hymie@lactose.homelinux.net (hymie!)
Lines: 18
Message-ID: <Vufan.39557$BV.3195@newsfe07.iad>
X-Complaints-To: abuse@WWWSpace.NET
NNTP-Posting-Date: Wed, 03 Feb 2010 14:12:05 UTC
Date: Wed, 03 Feb 2010 14:12:05 GMT