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 <[email protected]> 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 [email protected]
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies