Re: #+BEGIN_SRC sh C-c C-c in Windows
On 4/23/20 9:46 AM, Neil Cherry wrote: > On 4/23/20 2:15 AM, Robert Klein wrote: >> Hi, >> >> On Wed, 22 Apr 2020 08:09:39 -0400 >> Neil Cherry wrote: >> >>> I've searched for a resolution for this but haven't found one. I want >>> to be able to call a different command shell in Windows. What I keep >>> seeing is that it can't find /bin/sh >>> >>> #+BEGIN_SRC sh :results output >>> set >>> #+END_SRC >>> Thanks to everyone who helped (Robert. Steven, Julius). Basically the Windows path was munged and for some reason adding to the path (exec-path) didn't help. Anyway, cleaned up the path and it is now working on both Windows (Home and Work PC). #+BEGIN_SRC bash :shebang "#!/usr/bin/bash" :results output :wrap echo -e "#\n# Date: '$(date +%Y-%m-%d)'\n#" #+END_SRC #+RESULTS: #+BEGIN_RESULTS # # Date: '2020-04-26' # #+END_RESULTS -- Linux Home Automation Neil Cherry nche...@linuxha.com http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies
Re: #+BEGIN_SRC sh C-c C-c in Windows
On 4/23/20 2:15 AM, Robert Klein wrote: > Hi, > > On Wed, 22 Apr 2020 08:09:39 -0400 > Neil Cherry wrote: > >> I've searched for a resolution for this but haven't found one. I want >> to be able to call a different command shell in Windows. What I keep >> seeing is that it can't find /bin/sh >> >> #+BEGIN_SRC sh :results output >> set >> #+END_SRC >> >> I would prefer that I can change it to the bash shell in PortableGit. >> Also I have no ability to add packages to the machine (other than >> emacs). I don't have admin on this machine. >> >> Thanks > > use > > #begin_src bash ... #+BEGIN_SRC sh bash :results value raw set #+END_SRC Hit C-c C-C in the block results in: emacs returns /usr/bin/sh: sh: command not found -- Linux Home Automation Neil Cherry nche...@linuxha.com http://www.linuxha.com/ Main site http://linuxha.blogspot.com/My HA Blog Author of: Linux Smart Homes For Dummies
Re: #+BEGIN_SRC sh C-c C-c in Windows
Hi, On Wed, 22 Apr 2020 08:09:39 -0400 Neil Cherry wrote: > I've searched for a resolution for this but haven't found one. I want > to be able to call a different command shell in Windows. What I keep > seeing is that it can't find /bin/sh > > #+BEGIN_SRC sh :results output > set > #+END_SRC > > I would prefer that I can change it to the bash shell in PortableGit. > Also I have no ability to add packages to the machine (other than > emacs). I don't have admin on this machine. > > Thanks use #begin_src bash ... Best regards Robert