From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.devel Subject: Re: dired uses wrong `ls' switches for Tramp Date: Mon, 16 Sep 2002 16:31:32 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1032186775 28795 127.0.0.1 (16 Sep 2002 14:32:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 14:32:55 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17qwvl-0007UI-00 for ; Mon, 16 Sep 2002 16:32:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17qxZ8-0002at-00 for ; Mon, 16 Sep 2002 17:13:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qww1-0007jI-00; Mon, 16 Sep 2002 10:33:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17qwul-0007id-00 for emacs-devel@gnu.org; Mon, 16 Sep 2002 10:31:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17qwua-0007hw-00 for emacs-devel@gnu.org; Mon, 16 Sep 2002 10:31:51 -0400 Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qwuZ-0007hi-00 for emacs-devel@gnu.org; Mon, 16 Sep 2002 10:31:40 -0400 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g8GEVc826874 for ; Mon, 16 Sep 2002 16:31:38 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id QAA03022; Mon, 16 Sep 2002 16:31:33 +0200 (MET DST) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 4DBB53AFEA; Mon, 16 Sep 2002 16:31:32 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: (Kai.Grossjohann@cs.uni-dortmund.de's message of "Mon, 16 Sep 2002 16:18:40 +0200") Original-Lines: 67 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7948 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7948 Kai.Grossjohann@cs.uni-dortmund.de (Kai Gro=DFjohann) writes: > Does somebody know how Ange-FTP circumvents this problem? I now see that Ange-FTP has the same problem. (My previous check was bogus; didn't actually invoke Ange-FTP.) Here's the output from listing /ftp:ftp@ls6-ftp.cs.uni-dortmund.de:/pub/ with dired: /---- | ftp> open ls6-ftp | Connected to hobbiton. | 220 hobbiton FTP server (SunOS 5.6) ready. | user "ftp" Turtle Power! | Remote system type is UNIX. | Using binary mode to transfer files. | ftp> 331 Guest login ok, send ident as password. | 230 Guest login ok, access restrictions apply. | hash | Remote system type is UNIX. | Using binary mode to transfer files. | ftp> Hash mark printing on (1024 bytes/hash mark). | pwd | ftp> 257 "/" is current directory. | cd /pub/ | ftp> 250 CWD command successful. | ls -al /tmp/ange-ftp1053HLG | ftp> 200 PORT command successful. | 150 ASCII data connection for /bin/ls (129.217.19.80,37877) (0 bytes). | 226 ASCII Transfer complete. | cd /pub/src/emacs/ | ftp> 250 CWD command successful. | ls -al /tmp/ange-ftp1053UVM | ftp> 200 PORT command successful. | 150 ASCII data connection for /bin/ls (129.217.19.80,37878) (0 bytes). | 226 ASCII Transfer complete. | cd /pub/projects/medoc/ | ftp> 250 CWD command successful. | ls -al /tmp/ange-ftp1053hfS | ftp> 200 PORT command successful. | 150 ASCII data connection for /bin/ls (129.217.19.80,37879) (0 bytes). | 226 ASCII Transfer complete. | ftp> cd / | 250 CWD command successful. | ls -al /tmp/ange-ftp1053upY | ftp> 200 PORT command successful. | 150 ASCII data connection for /bin/ls (129.217.19.80,37880) (0 bytes). | 226 ASCII Transfer complete. | cd /pub/ | ftp> 250 CWD command successful. | ls --dired -al /tmp/ange-ftp10537ze | ftp> usage: ls remote-directory local-file | ls --dired -al /tmp/ange-ftp10537ze | ftp> usage: ls remote-directory local-file | ftp>=20 \---- I think that means a general solution is needed. One idea would be to add a FOR-DIRED argument to insert-directory which adds the corresponding switch. Then the filename handlers can do the right thing. kai --=20 ~/.signature is: umop 3p!sdn (Frank Nobis)