如何将当前cygwin目录转换为Windows格式 [英] How to convert current cygwin directory to windows format

查看:44
本文介绍了如何将当前cygwin目录转换为Windows格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要显示当前目录,我正在使用 $ pwd ,在Cygwin中可以正常工作.

解决方案

尝试以下任何一种版本:

  cygpath -w"$(pwd)"cygpath -w"$ PWD"cygpath -w`pwd`" 

To display current directory I am using $pwd which is working fine in Cygwin.

This document is explaining how to convert cygwin directory to windows format. But why $cygpath -w pwd and $cygpath -w $pwd is not working?

It is what I am getting in that case:

解决方案

try any of these versions:

cygpath -w "$(pwd)"
cygpath -w "$PWD"
cygpath -w "`pwd`"

这篇关于如何将当前cygwin目录转换为Windows格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆