[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why can't I use xargs emacs?
From: |
Thierry Volpiatto |
Subject: |
Re: Why can't I use xargs emacs? |
Date: |
Wed, 03 Feb 2010 08:23:52 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.92 (gnu/linux) |
Why not a simple:
emacs -nw -Q $(find . -name '*.txt')
Why do you want to use xargs?
Bill Marcum <marcumbill@bellsouth.net> writes:
> ["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 ; }
>
>
--
Thierry Volpiatto
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