This is the mail archive of the
cygwin
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: cygwin at cygwin dot com
- Date: Tue, 8 Jan 2008 21:09:11 -0500
- Subject: Re: need help with bash -c <command> with cygpath
- References: <loom.20080109T014917-334@post.gmane.org>
- Reply-to: cygwin at cygwin dot com
On Wed, Jan 09, 2008 at 01:52:31AM +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?
"It's because of the way the backslash is handled within double quotes."
"info bash" may be of some help.
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/