zsh-workers
 help / color / mirror / code / Atom feed
From: Andreas Pistoor <andreas.pistoor@db.com>
To: zsh-workers@zsh.org
Subject: Antwort: File completion of scp (tentative fix)
Date: Wed, 23 Nov 2011 10:49:54 +0100	[thread overview]
Message-ID: <OF782942A3.5EEBD0AF-ONC1257951.0035E072-C1257951.00360F63@db.com> (raw)
In-Reply-To: <20111123002149.GA9025@zenon.in.qult.net>

Hello,

> Supposing you have a remote host with a file in the home directory that 
begins
> with a dash, the completion may fail because the file argument is 
interpreted
> by ls as an option.
> 
> 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 
the 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.
if the file is in the home directory, should it not be possible, to 
prepend ./ to its name?

Greetings
Andreas

-- 

Informationen (einschließlich Pflichtangaben) zu einzelnen, innerhalb der EU tätigen Gesellschaften und Zweigniederlassungen des Konzerns Deutsche Bank finden Sie unter http://www.deutsche-bank.de/de/content/pflichtangaben.htm. Diese E-Mail enthält vertrauliche und/ oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den 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 information (including mandatory corporate particulars) on selected Deutsche Bank branches and group companies registered or incorporated in the European Union. 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 unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


  reply	other threads:[~2011-11-23 10:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23  0:21 Ignacy Gawędzki
2011-11-23  9:49 ` Andreas Pistoor [this message]
2011-11-23  9:52 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF782942A3.5EEBD0AF-ONC1257951.0035E072-C1257951.00360F63@db.com \
    --to=andreas.pistoor@db.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).