[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: xargs & vi



On Mon, 7 Jan 2002 16:43:47 +0100
martin f krafft <madduck@madduck.net> wrote:
> can anyone please explain this to me?
> 
> seamus:/usr/local/share/phpgw# find . -name Root | xargs vi
> 221 files to edit
> Vim: Warning: Input is not from a terminal
> 
> seamus:/usr/local/share/phpgw# vi `find . -name Root`
> 221 files to edit
> 
> how the heck does vi get the difference between the two methods of
> calling it...

In the first command, vi's input is STDOUT, not a terminal. In the
second command, it's a terminal.

--
 .--=====-=-=====-=========----------=====-----------=-=-----=.
/    David Barclay Harris            Aut agere, aut mori.      \
\        Clan Barclay              Either action, or death.    /
 `-------======-------------=-=-----=-===-=====-------=--=----'

Attachment: pgp7GZZdtbI_h.pgp
Description: PGP signature


Reply to: