Closed lislon closed 7 years ago
When run pamparam-sync command on windows 7 it fails
pamparam-sync
doc/sets/capitals/capitals.org
The -p directory created and I see error:
-p
pamparam-update-card: Command failed: mkdir -p "c:/Users/Elephant/src/elisp/pamparam/doc/sets/capitals/capitals.pam/cards/03/" && echo -e "* m\n#+STARTUP: content\n* France\nParis" > "c:/Users/Elephant/src/elisp/pamparam/doc/sets/capitals/capitals.pam/cards/03/0309a6c666a7a803fdb9db95de71cf01-e20d37a5d7fcc4c35be6fc18a8e71bfa.org"
Command succeeds
The workaround is to put mkdir into quotes:
;; pamparam.el (cmd (format "\"mkdir\" -p %s && echo -e %s > %s"
Related topic: https://superuser.com/questions/856582/force-windows-use-exe-on-path-rather-than-cmd-exe-internal-command.
Thanks, please test.
Sorry, forgot to mention that echo command has the same issue
Try it now. Should work, although much slower than on Linux.
Description :octocat:
When run
pamparam-sync
command on windows 7 it failsReproduction guide :beetle:
doc/sets/capitals/capitals.org
pamparam-sync
Observed behaviour: :eyes: :broken_heart:
The
-p
directory created and I see error:Expected behaviour: :heart: :smile:
Command succeeds
System Info :computer:
Workaround
The workaround is to put mkdir into quotes:
Related topic: https://superuser.com/questions/856582/force-windows-use-exe-on-path-rather-than-cmd-exe-internal-command.