I want a script
the buffer. Example:
Should open
The following does not work:
But the following does work:
and
My question: why the first does not work? Does someone have a better idea?
semacs
that open emacs
with what was sent to /dev/stdin inthe buffer. Example:
echo abc | semacs
Should open
emacs
with "abc" in the buffer. The idea is to exploit emacs
' EasyPG assistant in many "primitive" mail readers through piping.The following does not work:
Code:
#!/usr/opt/bin/emacs --insert /dev/stdin
But the following does work:
Code:
#!/bin/sh
exec /usr/opt/bin/emacs --insert /dev/stdin
and
Code:
#!/bin/sh
/usr/opt/bin/emacs --insert /dev/stdin
My question: why the first does not work? Does someone have a better idea?