I use emacs on a lot of different types of machines during the day, so I'm toying with writing some elisp scripts to avoid managing 4 scripting environments.
Specifically, I'm writing an elisp function to convert the batch-agenda-csv output into a markdown blob. However, I don't seem to be understanding how the piping works. The command I'm using is here:
emacs -batch -eval '(org-batch-agenda-csv "a" org-agenda-files (quote ("~/org_life/work.org")) org-agenda-span (quote week) org-agenda-start-on-weekday 0)' | ftwynnfunc
in this case, the ftwynnfunc is simply:
(defun ftwynnfunc (text) (concat text "**"))
I would've expected the output from emacs to get piped to the function, which would append "**" and display on stdout. Instead, I get a usage statement from ftwynnfunc and the csv output displays afterward. Am I missing something about how pipelines work in eshell (or possibly something even more basic)?