Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
运行 cygwin perl 时,有没有办法从 cygwin 路径获取 DOS 绝对路径?理想情况下,它还可以解析 cygwin 符号链接。
例如:
'/cygdrive/c/foo' -> 'C://foo'
从外壳:
cygpath -wa /cygdrive/c/foo
来自 perl:
system("cygpath", "-wa", "/cygdrive/c/foo")
我没有用符号链接测试过这个。