Ed Avis
Wed, 25 Jul 2001 02:56:32 -0700
On Wed, 25 Jul 2001, Kai [iso-8859-1] Großjohann wrote: Okay, I'll add an fsh/fcp external method to my local tramp and if it works, it can be incorporated into the main distribution. I know I sound like a bit of an idiot for suggesting a new addition without actually testing it first. But it's sooo tempting... just one little letter to change from 's' to 'f'... maybe it could go in without testing just this once... :-). I'll let you know how well it works and what needs to be added to the tramp-methods variable. Providing an inline fsh method would not make sense because fsh is not interactive; it just sets up a tunnel that can be used for successive non-interactive commands. At least, I assume that the inline methods require piping commands directly into an ssh or rsh session, which isn't possible with fsh. >>>>could the default method be to have >>>>TRAMP try several different connection methods in turn until it >>>>finds one that works >Maybe my resistance to this feature comes from the fact that >I've already struggled so much with other problems where Tramp does >try to provide auto-detection. It was not pretty. For example, >consider the simple task of finding a shell command which tells you >whether a file (or directory, or device, or pipe) exists. You'd think >that "test -e" is the right command. Except that some shells have a >pretty stupid "test" built-in which doesn't grok the "-e" switch. >Then you could think that "/bin/test -e" or "/usr/bin/test -e" >(depending on the system) might be right. But some systems have a >pretty stupid "/bin/test" or "/usr/bin/test"... you know that. Yet >another idea is "ls -d". This works nicely, except on NetBSD 1.4 >where the system-provided "ls" has a bug. On some NetBSD systems, >there is a program "gnuls" which does not have the bug. This reminds me of the UNIX-HATERS Handbook (how do you list all files, including hidden files, in a directory?). Remember, diversity is a good thing :-P. -- Ed Avis [EMAIL PROTECTED]