Timeline for Org-babel invoking cmd.exe
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 6, 2016 at 16:24 | vote | accept | Sam Hasler | ||
| S Jan 6, 2016 at 16:24 | history | bounty ended | Sam Hasler | ||
| S Jan 6, 2016 at 16:24 | history | notice removed | Sam Hasler | ||
| Jan 6, 2016 at 13:08 | answer | added | Tobias | timeline score: 9 | |
| Jan 5, 2016 at 13:07 | comment | added | Sam Hasler | @Tobias I'm using GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-09-07 on Windows 7. Specifically, this build: sourceforge.net/projects/emacsbinw64/files/snapshot/… (I also have git-bash on %PATH% and in emac's exec-path) | |
| Jan 4, 2016 at 15:26 | comment | added | Tobias | Which emacs do you use? Cygwin-environment or mingw-environment? Could you post the emacs-version output? Note, a (big) problem is also process-communication with cmd.exe via stdin and stdout. | |
| Jan 4, 2016 at 15:12 | comment | added | Sam Hasler | @Tobias perhaps the easiest solution would be to copy ob-sh-el to a new language ob-cmd.el and edit it to work with cmd. | |
| Jan 4, 2016 at 5:35 | comment | added | Tobias | @EmacsUser The situation is rather difficult! run-shell-command in (run-shell-command "cmd /c start cmd /k dir") uses shell-file-name which is set to bash. This cannot be let-set in a around advice of org-babel-sh-evaluate because org-babel--shell-command-on-region uses (process-file shell-file-name input-file ... shell-command-switch command) with shell-command-switch equal to "-c" and command set to org-babel-sh-command. So the shell is invoked twice. Setting the switches and command to nil does not work (error stringp). One would need a new org-babel language to avoid sh | |
| S Jan 3, 2016 at 23:19 | history | bounty started | Sam Hasler | ||
| S Jan 3, 2016 at 23:19 | history | notice added | Sam Hasler | Draw attention | |
| Dec 23, 2015 at 17:29 | comment | added | Emacs User | For one off cmd shell, I've used (run-shell-command "cmd /c start cmd /k dir") in the past. Perhaps you can tweak that for individual babel blocks. | |
| Dec 23, 2015 at 16:44 | review | First posts | |||
| Dec 23, 2015 at 17:55 | |||||
| Dec 23, 2015 at 16:41 | history | asked | Sam Hasler | CC BY-SA 3.0 |