check in by grossjoh: 'tramp/lisp tramp.el,2.20 ChangeLog,2.17'

2001-05-25 Thread Kai Grossjohann
Update of /services/emacs-rcp/cvsroot/tramp/lisp In directory lucy:/export/home/grossjoh/work/kai/tramp-devel/tramp/lisp Modified Files: tramp.el ChangeLog Log Message: (tramp-send-command-and-check): Add a space in the shell command. Suggested by Yuji Yamao. (I don't really

problems with perl?

2001-05-25 Thread Sven Utcke
Hi, recently tramp stopped working for me, sitting at tramp_file_attributes /home and not doing anything much. tramp_file_attributes is a ksh-function, and for me is defined as $ tramp_file_attributes () { /bin/perl -e '$f = $ARGV[0]; @s = lstat($f); if (($s[2] 017) == 012) { $l =

Re: problems with perl?

2001-05-25 Thread Sven Utcke
asterix/home/utcke% ls -l /bin/perl lrwxr-xr-x1 root root 20 May 16 16:12 /bin/perl - /usr/sbin/perl-5.004* But the shell function calls /bin/perl5, No, it isn't (did I write so initially?). not /bin/perl. Is that the problem? The lines from *debug tramp/scp foo*

Re: problems with perl?

2001-05-25 Thread Kai Großjohann
On Fri, 25 May 2001, Sven Utcke wrote: $ tramp_file_attributes () { /bin/perl -e '$f = $ARGV[0]; @s = lstat($f); if (($s[2] 017) == 012) { $l = readlink($f); $l = \$l\; } elsif (($s[2] 017) == 04) { $l = t; } else { $l = nil }; printf((%s %u %u %u (%u %u) (%u %u) (%u %u)

Re: Turn off check for perl5?

2001-05-25 Thread Stefan Monnier
Kai == Kai Großjohann [EMAIL PROTECTED] writes: On Fri, 25 May 2001, Sven Utcke wrote: (Should Tramp assume that any Perl found is a Perl 5?) Hmm. This, of course, would be guaranteed to break once perl6 is out, and possibly on some (very few) perl4-only machines... I guess it's time to

Re: Turn off check for perl5?

2001-05-25 Thread Kai Großjohann
On Fri, 25 May 2001, Sven Utcke wrote: Right. Any difference in environment between the two? kogs12/tmp% diff env.tramp env.ssh LC_TIME, PATH and TERM could be further investigated. Can you make the problem appear in a `normal' (non-Tramp) ksh by frobbing these variables? kai --

Re: Turn off check for perl5?

2001-05-25 Thread Stefan Monnier
Sven == Sven Utcke [EMAIL PROTECTED] writes: But the strange thing of course is that it _does_ work with that particular instance of perl when called from the shell, just not when called from tramp. This really _is_ weird... Could it be something odd going on with the line-endings ?

Re: Turn off check for perl5?

2001-05-25 Thread Sven Utcke
Sven == Sven Utcke [EMAIL PROTECTED] writes: But the strange thing of course is that it _does_ work with that particular instance of perl when called from the shell, just not when called from tramp. This really _is_ weird... Could it be something odd going on with the line-endings ?

Re: Turn off check for perl5?

2001-05-25 Thread Mark A. Hershberger
Stefan Monnier [EMAIL PROTECTED] writes: Kai == Kai Großjohann [EMAIL PROTECTED] writes: On Fri, 25 May 2001, Sven Utcke wrote: (Should Tramp assume that any Perl found is a Perl 5?) Hmm. This, of course, would be guaranteed to break once perl6 is out, and possibly on some (very

Re: tramp ($Id: tramp.el,v 2.19 2001/05/02 22:15:29 grossjoh Exp $); preserve permission

2001-05-25 Thread Kai Großjohann
On Thu, 24 May 2001, Matthew Harrison wrote: Could you try this patch? If it works fine, I will commit it. --- tramp.el.orig Thu May 24 17:30:22 2001 +++ tramp.elThu May 24 17:30:47 2001 @@ -3802,7 +3802,7 @@ (tramp-send-command multi-method method user host

Turn off check for perl5?

2001-05-25 Thread Kai Großjohann
Once upon a time, people had Perl 4 and Perl 5 on their system, and invoking perl5 ran the newer version. I think these days this is obsolete and Tramp should not check for perl5 anymore. What do you think? (Should Tramp assume that any Perl found is a Perl 5?) kai -- ~/.signature: No such

Re: Turn off check for perl5?

2001-05-25 Thread Daniel Pittman
On 25 May 2001, Kai Großjohann wrote: On 25 May 2001, Stefan Monnier wrote: Is there any good reason why the Perl code used by Tramp does not work with Perl-4 (and why it won't work with Perl-6) ? I have no idea whether it works on Perl 4. However, since it doesn't even work on a

Re: problems with perl?

2001-05-25 Thread Kai Großjohann
On Fri, 25 May 2001, Sven Utcke wrote: asterix/home/utcke% ls -l /bin/perl lrwxr-xr-x1 root root 20 May 16 16:12 /bin/perl - /usr/sbin/perl-5.004* But the shell function calls /bin/perl5, not /bin/perl. Is that the problem? kai -- ~/.signature: No such file or directory

Re: Turn off check for perl5?

2001-05-25 Thread Sven Utcke
Is there any good reason why the Perl code used by Tramp does not work with Perl-4 (and why it won't work with Perl-6) ? I have no idea whether it works on Perl 4. However, since it doesn't even work on a particular instance of Perl 5... But the strange thing of course is that it _does_

Re: tramp ($Id: tramp.el,v 2.19 2001/05/02 22:15:29 grossjoh Exp $); preserve permission

2001-05-25 Thread Matthew Harrison
Kai, I had 2 problems, the first had to do with an error after C-x C-s: - # Sending end of data token... $ echo hello ^D / hello $ 2/dev/nullecho tramp_exit_status $? /bin/ksh: /dev/nullecho: cannot create: Permission denied

Re: Turn off check for perl5?

2001-05-25 Thread Sven Utcke
Once upon a time, people had Perl 4 and Perl 5 on their system, and invoking perl5 ran the newer version. I think these days this is obsolete and Tramp should not check for perl5 anymore. What do you think? I tend to agree --- if only because, on my system, the executable is called

Re: Turn off check for perl5?

2001-05-25 Thread Kai Großjohann
On Fri, 25 May 2001, Sven Utcke wrote: (Should Tramp assume that any Perl found is a Perl 5?) Hmm. This, of course, would be guaranteed to break once perl6 is out, and possibly on some (very few) perl4-only machines... I guess it's time to run `perl -v', then. Argh. Sounds like work.

Re: Turn off check for perl5?

2001-05-25 Thread Sven Utcke
But the strange thing of course is that it _does_ work with that particular instance of perl when called from the shell, just not when called from tramp. This really _is_ weird... Right. Any difference in environment between the two? kogs12/tmp% diff env.tramp env.ssh 1c1 _=/bin/env

Re: Turn off check for perl5?

2001-05-25 Thread Sven Utcke
Right. Any difference in environment between the two? kogs12/tmp% diff env.tramp env.ssh LC_TIME, PATH and TERM could be further investigated. Can you make the problem appear in a `normal' (non-Tramp) ksh by frobbing these variables? No. Sven -- _ __ The

Re: Turn off check for perl5?

2001-05-25 Thread Kai Großjohann
On 25 May 2001, Stefan Monnier wrote: Sven == Sven Utcke [EMAIL PROTECTED] writes: But the strange thing of course is that it _does_ work with that particular instance of perl when called from the shell, just not when called from tramp. This really _is_ weird... Could it be something

Re: problems with perl?

2001-05-25 Thread Sven Utcke
Hello Kai, and I used the mouse to copy and paste that when testing. Hmm. In your original post, you had tramp_file_attributes twice, one with /bin/perl (seemed to work fine), and the other with /bin/perl5 (failed). I'm confused. Well, maybe it's just me having been confused. Ok,