[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why can't I use xargs emacs?
From: |
Bill Marcum |
Subject: |
Re: Why can't I use xargs emacs? |
Date: |
Tue, 2 Feb 2010 16:35:59 -0500 |
User-agent: |
slrn/pre1.0.0-11 (Linux) |
["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 ; }
Re: Why can't I use xargs emacs?, Bit Twister, 2010/02/03
Re: Why can't I use xargs emacs?, hymie!, 2010/02/04