[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shebang for eshell scripts.
From: |
Lockywolf |
Subject: |
Re: Shebang for eshell scripts. |
Date: |
Thu, 30 Nov 2023 18:45:34 +0800 |
User-agent: |
mu4e 1.10.7; emacs 30.0.50 |
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)