Dear John,
thank you for your reply!
I realized that I use Pandoc compiled for Windows and that is probably the reason it behaves like this in Cygwin environment.
Changing = to space does not work either, and I assume it depends on the differencies in environments.
I can workaround both of these problems (or use correct software in the right environment).
Thank you!
Regards
Hans
Fredag 12 juli 2019 kl. 06:34:33 UTC+9 skrev John MacFarlane:
Cygwin is tough. Certain things about pandoc's
file path handling depend on the platform pandoc
is compiled on. So a pandoc compiled on windows
may have expectations that are not met in Cygwin.
See https://github.com/jgm/pandoc/issues/5451
which may be somehow related.
You can put up an issue on this if you like.
About the other issue:
> Full paths works in CMD.exe and in Linux (Ubuntu with pandoc 2.7.2).
> For me it is of a smaller issue, but
> pandoc -s --reference-doc=~/Documents/script/reference.odt -o test.odt
> input.md # Does not work with ~ (tilde)
> will also not work.
This is because ~ is interpreted by the shell, normally, but
in this context it is just passed on literally to pandoc.
If you try with a space in place of = it should work.