From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12763 invoked by alias); 23 Nov 2011 09:52:49 -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: 29913 Received: (qmail 14759 invoked from network); 23 Nov 2011 09:52:46 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Wed, 23 Nov 2011 09:52:35 +0000 From: Peter Stephenson To: Subject: Re: File completion of scp (tentative fix) Message-ID: <20111123095235.5da58423@pwslap01u.europe.root.pri> In-Reply-To: <20111123002149.GA9025@zenon.in.qult.net> References: <20111123002149.GA9025@zenon.in.qult.net> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.101.11.233] X-Scanned-By: MailControl 7.6.4 (www.mailcontrol.com) on 10.71.0.121 On Wed, 23 Nov 2011 01:21:50 +0100 Ignacy Gaw=C4=99dzki wrote: > Supposing you have a remote host with a file in the home directory that b= egins > with a dash, the completion may fail because the file argument is interpr= eted > by ls as an option. >=20 > See the attached patch, which adds a -- before the pattern, so that files > starting with a dash won't possibly be considered as options. This is th= e way > to go with a GNU ls on the other side, but I don't know how other versions > will interpret that. Maybe something more sophisticated has to be done to > remain as generic as possible. I can't see a problem with that: the "--" has been standard for a long time. If it handles "-d1FL" you would think it ought to handle "--". I've commited it. --=20 Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, = UK Member of the CSR plc group of companies. CSR plc registered in England and= Wales, registered number 4187346, registered office Churchill House, Cambr= idge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http= ://twitter.com/CSR_PLC and read our blog at www.csr.com/blog