Using cygpath with backticks

Earnie Boyd earnie@users.sourceforge.net
Sat Jun 22 17:03:00 GMT 2013


On Sat, Jun 22, 2013 at 11:39 AM, Matt D. wrote:
> Maybe I've just had a long week but I can't seem to get this to work:
>
> alias pathw='echo `cygpath -w "$@"`'

I think all you want is

alias pathw='cygpath -w'

> pathw "/cygdrive/g/"
>

The result of this will then be

G:\

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
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



More information about the Cygwin mailing list