From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20130 invoked by alias); 23 Nov 2011 10:10:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29914 Received: (qmail 17173 invoked from network); 23 Nov 2011 10:10:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at db.com does not designate permitted sender hosts) In-Reply-To: <20111123002149.GA9025@zenon.in.qult.net> References: <20111123002149.GA9025@zenon.in.qult.net> To: zsh-workers@zsh.org MIME-Version: 1.0 Subject: Antwort: File completion of scp (tentative fix) X-KeepSent: 782942A3:5EEBD0AF-C1257951:0035E072; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.1FP2 HF54 April 29, 2010 From: Andreas Pistoor Message-ID: Date: Wed, 23 Nov 2011 10:49:54 +0100 X-MIMETrack: Serialize by Router on MSGR0003/srv/dbsmtp(Release 8.0.2FP6|July 15, 2010) at 23.11.2011 10:50:38, Serialize complete at 23.11.2011 10:50:38 Content-Type: text/plain; charset="utf-8" content-transfer-encoding: quoted-printable Hello, > Supposing you have a remote host with a file in the home directory that=20 begins > with a dash, the completion may fail because the file argument is=20 interpreted > by ls as an option. >=20 > See the attached patch, which adds a -- before the pattern, so that=20 files > starting with a dash won't possibly be considered as options. This is=20 the way > to go with a GNU ls on the other side, but I don't know how other=20 versions > will interpret that. Maybe something more sophisticated has to be done=20 to > remain as generic as possible. if the file is in the home directory, should it not be possible, to=20 prepend ./ to its name? Greetings Andreas --=20 Informationen (einschlie=C3=9Flich Pflichtangaben) zu einzelnen, innerhalb = der EU t=C3=A4tigen Gesellschaften und Zweigniederlassungen des Konzerns De= utsche Bank finden Sie unter http://www.deutsche-bank.de/de/content/pflicht= angaben.htm. Diese E-Mail enth=C3=A4lt vertrauliche und/ oder rechtlich ges= ch=C3=BCtzte Informationen. Wenn Sie nicht der richtige Adressat sind oder = diese E-Mail irrt=C3=BCmlich erhalten haben, informieren Sie bitte sofort d= en Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie = die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Please refer to http://www.db.com/en/content/eu_disclosures.htm for informa= tion (including mandatory corporate particulars) on selected Deutsche Bank = branches and group companies registered or incorporated in the European Uni= on. This e-mail may contain confidential and/or privileged information. If = you are not the intended recipient (or have received this e-mail in error) = please notify the sender immediately and delete this e-mail. Any unauthoriz= ed copying, disclosure or distribution of the material in this e-mail is st= rictly forbidden.