This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
Re: need help with bash -c <command> with cygpath
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
- Date: Tue, 8 Jan 2008 20:03:33 -0500
- Subject: Re: need help with bash -c <command> with cygpath
- References: <loom.20080108T211906-865@post.gmane.org>
- Reply-to: cygwin-talk at cygwin dot com
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
On Tue, Jan 08, 2008 at 11:59:32PM +0000, Jay wrote:
>When i run
>>cygpath -a '\\uncpath\mydrive$'
>//uncpath/mydrive$
>
>Which is the expected behaivor.
>
>When i run
>>bash -i -c "cygpath -a '\\uncpath\mydrive$'"
>/C/uncpath/mydrive$
>
>Which is not what i want. I'm trying to pass in the unc path from windows, so
>it needs converted.
>
>Why do i get different results depending on how it is called?
* cygwin-talk: a mindless chatter list. This list is intended to be
funny but not terribly helpful. Do not send technical questions about
Cygwin here. Use the main cygwin mailing list for serious Cygwin
questions since responses to technical questions in this list are not
guaranteed to be serious or definitive. No profanity, no commercial
posts, and minimal flaming, please.
To answer your *technical question* - it's because of the way the
backslash is handled within double quotes.
If this answer either confuses and astounds you then please use the
cygwin mailing list to ask further questions.
http://www1.istockphoto.com/file_thumbview_approve/2249723/2/istockphoto_2249723_cute_pink_hippo.jpg