* Shebang for eshell scripts.
@ 2023-11-30 9:54 Lockywolf
2023-11-30 10:45 ` Lockywolf
0 siblings, 1 reply; 2+ messages in thread
From: Lockywolf @ 2023-11-30 9:54 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Hello, everyone.
What is the proper way to write a shebang line for eshell?
I am imagining something like
#!/usr/bin/emacs -Q --batch '(apply eshell-eval-command
command-line-args)
but not quite.
Thanks for hints!
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Shebang for eshell scripts.
2023-11-30 9:54 Shebang for eshell scripts Lockywolf
@ 2023-11-30 10:45 ` Lockywolf
0 siblings, 0 replies; 2+ messages in thread
From: Lockywolf @ 2023-11-30 10:45 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Lockywolf <for_help-gnu-emacs_at_gnu_org_2023-11-30@lockywolf.net> writes:
> Hello, everyone.
>
> What is the proper way to write a shebang line for eshell?
>
> I am imagining something like
> #!/usr/bin/emacs -Q --batch '(apply eshell-eval-command
> command-line-args)
>
> but not quite.
>
> Thanks for hints!
After playing a bit, I thought about the following:
#!/usr/bin/env -S /usr/bin/emacs-no-x11 -Q --batch --eval="(let ((retval 0)) (use-package eshell) (require 'eshell) (require 'em-script) (require 'em-basic) (eshell-source-file (caddr command-line-args)))"
This _almost_ works, but cannot find any eshell replacements.
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-30 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-30 9:54 Shebang for eshell scripts Lockywolf
2023-11-30 10:45 ` Lockywolf
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.