Re: OT: xargs & vi

2002-01-09 Thread dman
On Wed, Jan 09, 2002 at 10:11:56PM +0100, martin f krafft wrote: | also sprach nori heikkinen <[EMAIL PROTECTED]> [2002.01.09.1716 +0100]: | > hosing up the telnet session, yes. i would guess. but using vimm | > 6.0.93 locally, i get the same results and error messages inputting to | > vim from s

Re: OT: xargs & vi

2002-01-09 Thread Eric G . Miller
On Wed, 9 Jan 2002 22:11:56 +0100, martin f krafft <[EMAIL PROTECTED]> wrote: [snip] > any form of 'vim -' will read the data to be edited from stdin, not the > filenames, so it's not appropriate. > > and even though i swear it worked, > > command | vim > > just dies with > > Vim: Warning: I

Re: OT: xargs & vi

2002-01-09 Thread martin f krafft
also sprach nori heikkinen <[EMAIL PROTECTED]> [2002.01.09.1716 +0100]: > hosing up the telnet session, yes. i would guess. but using vimm > 6.0.93 locally, i get the same results and error messages inputting to > vim from stdin. i can't reproduce your conclusive results on my > machine, martin

Re: OT: xargs & vi

2002-01-09 Thread Nori Heikkinen
on Wed, 09 Jan 2002 09:01:45AM -0600, Keith G. Murphy insinuated: > martin f krafft wrote: > > so, to close this thread: find . -name Root | vim > > > Not so fast! Using vim 5.3, I get: > > ls my.txt | vim > Vim: Warning: Input is not from a terminal > Empty buffer > Vim: Error reading input, ex

Re: OT: xargs & vi

2002-01-09 Thread Keith G. Murphy
martin f krafft wrote: > > also sprach dman <[EMAIL PROTECTED]> [2002.01.09.0231 +0100]: > > | echo .muttrc | vim - > > > > ls .muttrc | xargs vim > > aha, the '-' is the problem. > > > I didn't think that would work (once I straightened out my > > understanding of the stdin stuff), but it does.

Re: OT: xargs & vi

2002-01-08 Thread martin f krafft
also sprach dman <[EMAIL PROTECTED]> [2002.01.09.0231 +0100]: > | echo .muttrc | vim - > > ls .muttrc | xargs vim aha, the '-' is the problem. > I didn't think that would work (once I straightened out my > understanding of the stdin stuff), but it does. yeah, it surprises me too... oh well. vi

Re: OT: xargs & vi

2002-01-08 Thread dman
On Wed, Jan 09, 2002 at 01:24:28AM +0100, martin f krafft wrote: | also sprach dman <[EMAIL PROTECTED]> [2002.01.09.0124 +0100]: | > :-). Hmm, interesting, vim is able to read the filename from stdin. | | ??? | | echo .muttrc | vim - | | gives me a new file in vim with contents ".muttrc", but

Re: OT: xargs & vi

2002-01-08 Thread martin f krafft
also sprach dman <[EMAIL PROTECTED]> [2002.01.09.0124 +0100]: > :-). Hmm, interesting, vim is able to read the filename from stdin. ??? echo .muttrc | vim - gives me a new file in vim with contents ".muttrc", but it doesn't open .muttrc... -- martin; (greetings from the heart of

Re: OT: xargs & vi

2002-01-08 Thread dman
On Wed, Jan 09, 2002 at 12:22:57AM +0100, martin f krafft wrote: | also sprach dman <[EMAIL PROTECTED]> [2002.01.08.2343 +0100]: | > | sure, that will read the output of the find command into vi, iff you | > | actually omit the xargs. | > | > Yeah, but you didn't omit xargs :-). | | because i wan

Re: OT: xargs & vi

2002-01-08 Thread martin f krafft
also sprach dman <[EMAIL PROTECTED]> [2002.01.08.2343 +0100]: > | sure, that will read the output of the find command into vi, iff you > | actually omit the xargs. > > Yeah, but you didn't omit xargs :-). because i wanted to use it. i wanted it to provide filenames to vi the same way that find .

Re: OT: xargs & vi

2002-01-08 Thread dman
On Tue, Jan 08, 2002 at 09:59:56PM +0100, martin f krafft wrote: | also sprach dman <[EMAIL PROTECTED]> [2002.01.08.2146 +0100]: | > Other people have explained what happened, but not how to get where | > you want to be. For vim, at least, | > | > find . -name Root | xargs vi - | > | > Tell vim

Re: OT: xargs & vi

2002-01-08 Thread martin f krafft
also sprach dman <[EMAIL PROTECTED]> [2002.01.08.2146 +0100]: > Other people have explained what happened, but not how to get where > you want to be. For vim, at least, > > find . -name Root | xargs vi - > > Tell vim to read data from stdin and commands from stderr. This is > also useful to sti

Re: OT: xargs & vi

2002-01-08 Thread dman
On Mon, Jan 07, 2002 at 04:43:47PM +0100, martin f krafft 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

Re: OT: xargs & vi

2002-01-07 Thread David B Harris
On Mon, 7 Jan 2002 16:43:47 +0100 martin f krafft <[EMAIL PROTECTED]> 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

Re: OT: xargs & vi

2002-01-07 Thread Pietro Cagnoni
martin f krafft 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 v

Re: OT: xargs & vi

2002-01-07 Thread Stephen P Williams
On Mon, Jan 07, 2002 at 04:43:47PM +0100, martin f krafft 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 In this case, the shell starts 'xargs' with stdin from the std

Re: OT: xargs & vi

2002-01-07 Thread Eric G . Miller
On Mon, 7 Jan 2002 16:43:47 +0100, martin f krafft <[EMAIL PROTECTED]> 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 . -na

OT: xargs & vi

2002-01-07 Thread martin f krafft
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