On Jun 21 09:23, Andrey Repin wrote: > Greetings, All! > > I'm facing an unacceptable cygpath behavior related to the network shares. > > The testcase is:
Here's what happens on my machine: > [\\DAEMON1\anrdaemon]$cygpath -u \\DAEMON1\anrdaemon\.profile > //DAEMON1/anrdaemon/.profile /cygdrive/c/DAEMON1anrdaemon.profile > [\\DAEMON1\anrdaemon]$cygpath -m \\DAEMON1\anrdaemon\.profile > //DAEMON1/anrdaemon/.profile C:/DAEMON1anrdaemon.profile > [\\DAEMON1\anrdaemon]$cygpath -lm \\DAEMON1\anrdaemon\.profile > //DAEMON1/anrdaemon/.profile C:/DAEMON1anrdaemon.profile > [\\DAEMON1\anrdaemon]$cygpath -u "\\DAEMON1\anrdaemon\.profile" > /DAEMON1/anrdaemon/.profile /cygdrive/c/DAEMON1/anrdaemon/.profile > > [\\DAEMON1\anrdaemon]$cygpath -m "\\DAEMON1\anrdaemon\.profile" > ///DAEMON1/anrdaemon/.profile C:/DAEMON1/anrdaemon/.profile > > [\\DAEMON1\anrdaemon]$cygpath -lm "\\DAEMON1\anrdaemon\.profile" > ///DAEMON1/anrdaemon/.profile C:/DAEMON1/anrdaemon/.profile Alternatively: $ cygpath -u '\\DAEMON1\anrdaemon\.profile' //DAEMON1/anrdaemon/.profile $ cygpath -m '\\DAEMON1\anrdaemon\.profile' //DAEMON1/anrdaemon/.profile $ cygpath -lm '\\DAEMON1\anrdaemon\.profile' //DAEMON1/anrdaemon/.profile > Only unquoted path producing usable results, but it's not realistically > imaginable I would let it run this way. There's something weird in your bash settings. Usually bash will fold the backslashes before using the string as argument to the child process. See the behaviour with echo: $ echo \a a $ echo \\a \a $ echo "\a" \a $ echo "\\a" \a $ echo '\a' \a $ echo '\\a' \\a So what cygpath gets as argument in your first example is usually \DAEMON1anrdaemon.profile I don't know what the difference in your settings is, though. Something with readline, maybe. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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