[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading from standard input in batch mode
From: |
Noam Postavsky |
Subject: |
Re: reading from standard input in batch mode |
Date: |
Tue, 22 May 2018 16:50:02 -0400 |
On 22 May 2018 at 16:44, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>> (shell-command
>> "emacs -Q --batch -l boomerang.el -f boomerang \"hi there\"")
>>
>> The subordinate emacs starts and finishes (returning 255, which just
>> came up on a thread in emacs.devel, I think), but no file is written. As
>> far as I know, `read' should be reading from standard-input in this
>> case. What am I doing wrong?
>
> I figured it out, it should have been (read t). Ignore me!
Shouldn't it have been:
(shell-command
"echo \"hi there\" | emacs -Q --batch -l boomerang.el -f boomerang")