GNU bug report logs - #70847
29.3; eshell scripts "from anywhere"

Previous Next

Package: emacs;

Reported by: Christopher Howard <christopher <at> librehacker.com>

Date: Thu, 9 May 2024 17:59:01 UTC

Severity: normal

Found in version 29.3

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Porter <jporterbugs <at> gmail.com>
To: Christopher Howard <christopher <at> librehacker.com>, 70847 <at> debbugs.gnu.org
Subject: bug#70847: 29.3; eshell scripts "from anywhere"
Date: Thu, 23 May 2024 13:30:09 -0700
[Message part 1 (text/plain, inline)]
On 5/9/2024 10:57 AM, Christopher Howard wrote:
> ``` ~/Scratch/script.esh
> echo hello world
> ```
> 
> M-: (eshell-source-file "~/Scratch/script.esh")
> 
> gives
> 
> eval-expression: No catch for tag: eshell-replace-command, (let ((eshell-command-name '"~/Scratch/script.esh") (eshell-command-arguments 'nil)) (eshell-trap-errors (eshell-named-command "echo" (list "hello" "world"))))

Looking at this code, I doubt 'eshell-source-file' ever worked, so the 
documentation is probably just wrong.

Do the attached patches help you? They also add support for running 
Eshell scripts from the command line using a shebang.
[0001-Consolidate-Eshell-module-loading-unloading-code.patch (text/plain, attachment)]
[0002-Use-esh-module-autoload-for-Eshell-modules-defgroups.patch (text/plain, attachment)]
[0003-Rework-how-eshell-ensure-newline-p-adds-newlines.patch (text/plain, attachment)]
[0004-Fix-calling-Eshell-scripts-outside-of-Eshell.patch (text/plain, attachment)]

This bug report was last modified 1 year and 51 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.