Article View: comp.unix.shell
Article #4093Re: Why can't I use xargs emacs?
From: Bill Marcum
Date: Tue, 02 Feb 2010 21:35
Date: Tue, 02 Feb 2010 21:35
14 lines
1393 bytes
1393 bytes
["Followup-To:" header set to comp.unix.shell.]
On 2010-02-02, Adam Funk <a24061@ducksburg.com> 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 "$@" </dev/tty >&0 2>&0 ; }
Technical Details
Message-ID:
<veim37-6j8.ln1@marcumbill.bellsouth.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mailReferences:
<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!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: Bill Marcum <marcumbill@bellsouth.net> Newsgroups: comp.unix.shell,gnu.emacs.help Subject: Re: Why can't I use xargs emacs? Followup-To: comp.unix.shell Date: Tue, 2 Feb 2010 16:35:59 -0500 Organization: Aioe.org NNTP Server Lines: 15 Message-ID: <veim37-6j8.ln1@marcumbill.bellsouth.net> References: <p4em37xiau.ln2@news.ducksburg.com> NNTP-Posting-Host: eauQ+Qtyn6bORkjh/RwF3Q.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/pre1.0.0-11 (Linux) X-Notice: Filtered by postfilter v. 0.8.2