GNU bug report logs -
#70847
29.3; eshell scripts "from anywhere"
Previous Next
Full log
View this message in rfc822 format
Hi, am attempting to do further testing of features using the current patched install:
(1) Regarding eshell-execute-file:
(a) command executes as expected when called as a normal function
(b) it would seem highly desireable for this to be an interactive function as well. Though of course you'd have to think through exactly how you wanted to handle ARGS and DESTINATION during an interactive call.
(2) I'm having trouble testing the eshell-batch-file functionality. I created a script like so:
```
#!/home/christopher/local/bin/emacs --batch -f eshell-batch-file
echo bleep
```
When I try to run this, the correct emacs gets launched (the patched one) but emacs also tries to load my local init.el file - the one written for my 29.3 install - which leads to a backtrace as certain things don't load correctly. My understanding was that --batch is supposed to prevent local init files from being loaded.
I tried adding -Q to the shebang line but that doesn't seem to have an effect.
I find that I can do something like this fine from the console:
```
christopher <at> theoden ~ [env]$ EMACSLOADPATH=/home/christopher/local/share/emacs/site-lisp:/home/christopher/local/share/emacs/30.0.50/lisp ~/local/bin/emacs --batch -f pwd
Directory ~/
```
--
Christopher Howard
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.