emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #+BEGIN_SRC sh C-c C-c in Windows


From: Neil Cherry
Subject: Re: #+BEGIN_SRC sh C-c C-c in Windows
Date: Sun, 26 Apr 2020 12:10:59 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]