我在 cygwin 下使用 perl 来运行 imagemagick 和 LaTeX。由于各种原因,我必须在 cygstart 下运行 pdflatex。我在 cygstart 命令中有一个带空格的路径,并且只能使用没有空格的 windows 路径正确运行它
cygstart c:/stuff/pdflatex.exe c:/Users/mainho~1/Pictures/6-13/directory.tex
mainho~1" is the 8char form of "main home computer
我想要一个 perl 或 unix 函数
/cygdrive/c/Users/main\ home\ computer/Pictures/6-13/directory.tex
并且会回来
c:/Users/mainho~1/Pictures/6-13/directory.tex