Closed ghost closed 4 years ago
Right, forgive me. I read the code and realized that it is directly piping the output from the "shell", and my fish shell, when initialized, always prints the date in the first line.
I've fixed it for myself by commenting out that line in my fish config, but I do consider this an issue that ideally should be resolved so awkward workarounds aren't necessary, so I will leave this up here.
I think this can be fixed by wrapping all calls to shell-command-to-string
in a (let ((shell-file-name "/bin/bash")) ...)
,
although it might break on systems where bash is not installed (at that location).
The shell commands could also go into separate files, in that case I'd need to figure out how to pass the directories and awk variables.
Do you have a better idea how to fix this?
Can we use sh
? I doubt sh
can be customized like bash
and fish
. Also, sh
is almost always in /bin/sh
.
Honestly, this is still a workaround. I guess this is either an emacs
or a fish
issue that causes emacs to parse output when you initiate a shell instead of just piping an input and getting that output.
Closing, moved to https://todo.sr.ht/~l3kn/org-fc/3
For a file with this content:
I get this error:
I'd like a hint as to what is going on