delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/22/17:37:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>,
"'Daniel Colascione'" <dan DOT colascione AT gmail DOT com>
Date: Thu, 22 Jul 2010 17:36:07 -0400
Subject: RE: Stray /c invoking robocopy
Message-ID: <0105D5C1E0353146B1B222348B0411A209452564D1@NIHMLBX02.nih.gov>
References: <000001cb29e1$65881a70$30984f50$@gmail.com>
In-Reply-To: <000001cb29e1$65881a70$30984f50$@gmail.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Daniel Colascione sent the following at Thursday, July 22, 2010 5:04 PM
>
>Where does the /c come from when I type "robocopy /?"?
>
>When I type, at a bash prompt, "robocopy /?", robocopy complains about
>an invalid parameter #1, "/c".  With switches other than "/?", I don't
>have a problem.

Sounds like /cygdrive is mounted as /, which means C: is mounted as /c.
Then bash interprets ? as the wildcard for a single character and C: is
the first drive that shows up.  Try "robocopy '/?'" or "robocopy /\?".

As an experiment, try "echo /?" at a bash prompt.  You should also see
a line that begins "none / cygdrive" in the output of "mount -m".

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019